org.apache.juddi.datatype
Class Name

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

public class Name
extends java.lang.Object
implements RegistryObject

Used in BusinessEntity as the Name of the BusinessEntity, in BusinessService as the name of the BusinessService and in TModel as the name of the TModel.

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

Constructor Summary
Name()
          Construct a new initialized name instance.
Name(java.lang.String name)
          Construct a new name from a String.
Name(java.lang.String name, java.lang.String lang)
          Construct a new name with a given name.
 
Method Summary
 java.lang.String getLanguageCode()
          Returns the LanguageCode of this Name object.
 java.lang.String getValue()
          Returns the name of this name-object.
 void setLanguageCode(java.lang.String newLang)
          Sets the name of this name-object to the new given name.
 void setValue(java.lang.String newName)
          Sets the name of this name-object to the new given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Name

public Name()
Construct a new initialized name instance.


Name

public Name(java.lang.String name)
Construct a new name from a String.

Parameters:
name - The name of the new name-object.

Name

public Name(java.lang.String name,
            java.lang.String lang)
Construct a new name with a given name.

Parameters:
name - The name of the new name-object.
lang - The language of the new name-object.
Method Detail

setValue

public void setValue(java.lang.String newName)
Sets the name of this name-object to the new given name.

Parameters:
newName - The new name for this name-object.

getValue

public java.lang.String getValue()
Returns the name of this name-object.

Returns:
The name of this name-object.

setLanguageCode

public void setLanguageCode(java.lang.String newLang)
Sets the name of this name-object to the new given name.

Parameters:
newLang - The new name for this name-object.

getLanguageCode

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

Returns:
The LanguageCode of this name-object.


Copyright © 2004-2007. All Rights Reserved.