Package org.apache.axis2.util
Class MetaDataEntry
java.lang.Object
org.apache.axis2.util.MetaDataEntry
- All Implemented Interfaces:
Externalizable,Serializable,SafeSerializable
An internal class for holding a set of information
about an object.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimple constructorMetaDataEntry(String className, String qnameAsString) ConstructorMetaDataEntry(String className, String qnameAsString, String extraName) ConstructorMetaDataEntry(String className, String qnameAsString, ArrayList children) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd to the listGet the listGet the class nameGet the additional name associated with the objectgetName()This is a convenience method.getQName()Get the QNameGet the QName as a stringbooleanIndicates whether the list is empty or notvoidreadExternal(ObjectInput inObject) Restore the contents of the object that was previously saved.voidRemove the listvoidSet the listvoidSet the class namevoidSet the additional name associated with the objectvoidSet the QNamevoidSet the QNamevoidSave the contents of this object
-
Field Details
-
END_OF_LIST
-
-
Constructor Details
-
MetaDataEntry
public MetaDataEntry()Simple constructor -
MetaDataEntry
Constructor- Parameters:
className- name of the object classqnameAsString- an expanded version of the QName of this object
-
MetaDataEntry
Constructor- Parameters:
className- name of the object classqnameAsString- an expanded version of the QName of this objectextraName- an additional name associated withe the object
-
MetaDataEntry
Constructor- Parameters:
className- name of the object classqnameAsString- an expanded version of the QName of this objectchildren- an ArrayList containing MetaDataEntries for owned objects
-
-
Method Details
-
getClassName
Get the class name- Returns:
- the class name string
-
setClassName
Set the class name- Parameters:
c- the class name string
-
getQName
Get the QName- Returns:
- the QName based on the qnameAsString value
-
setQName
Set the QName- Parameters:
q- the QName
-
setQName
Set the QName- Parameters:
n- the QName as a string
-
getQNameAsString
Get the QName as a string- Returns:
- the QName as a string
-
getName
This is a convenience method. Returns the string that is used as a name.- Returns:
- the name
-
getExtraName
Get the additional name associated with the object- Returns:
- the additional name string
-
setExtraName
Set the additional name associated with the object- Parameters:
e- the extra name string
-
isListEmpty
public boolean isListEmpty()Indicates whether the list is empty or not- Returns:
- false for a non-empty list, true for an empty list
-
getChildren
Get the list- Returns:
- the array list
-
setChildren
Set the list- Parameters:
L- the ArrayList of MetaDataEntry objects
-
addToList
Add to the list- Parameters:
e- the MetaDataEntry object to add to the list
-
removeList
public void removeList()Remove the list -
writeExternal
Save the contents of this object- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- The stream to write the object contents to- Throws:
IOException
-
readExternal
Restore the contents of the object that was previously saved. NOTE: The field data must read back in the same order and type as it was written.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- The stream to read the object contents from- Throws:
IOExceptionClassNotFoundException
-