org.apache.juddi.datatype
Class Description

java.lang.Object
  extended by org.apache.juddi.datatype.Description
All Implemented Interfaces:
java.io.Serializable, RegistryObject

public class Description
extends java.lang.Object
implements RegistryObject

A Description object contains a textual description and an optional language code.

A default ISO language code will be determined for a publisher at the time that a party establishes permissions to publish at a given operator site or implementation. This default language code will be applied to any description values that are provided with no language code.

Author:
Steve Viens (sviens@apache.org)
See Also:
Serialized Form

Constructor Summary
Description()
          Construct a new initialized Description instance.
Description(java.lang.String descValue)
          Construct a new initialized Description instance.
Description(java.lang.String descValue, java.lang.String langCode)
          Construct a new initialized Description instance.
 
Method Summary
 java.lang.String getLanguageCode()
          Returns the LanguageCode of this Description.
 java.lang.String getValue()
          Returns the text of this Description.
 void setLanguageCode(java.lang.String langCode)
          Sets the LanguageCode of this Description.
 void setValue(java.lang.String newDesc)
          Sets the text of this Description to the given text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Description

public Description()
Construct a new initialized Description instance.


Description

public Description(java.lang.String descValue)
Construct a new initialized Description instance.


Description

public Description(java.lang.String descValue,
                   java.lang.String langCode)
Construct a new initialized Description instance.

Method Detail

setLanguageCode

public void setLanguageCode(java.lang.String langCode)
Sets the LanguageCode of this Description.

Parameters:
langCode - The new LanguageCode.

getLanguageCode

public java.lang.String getLanguageCode()
Returns the LanguageCode of this Description.

Returns:
The LanguageCode of this Description, or null if this description doesn't have a LanguageCode.

setValue

public void setValue(java.lang.String newDesc)
Sets the text of this Description to the given text. If the Description has more than 255 characters, it will be trunctated.

Parameters:
newDesc - The new text of this Description.

getValue

public java.lang.String getValue()
Returns the text of this Description.

Returns:
The text of this Description.


Copyright © 2004-2007. All Rights Reserved.