Package org.apache.axis2.util
Class MetaDataEntry
- java.lang.Object
-
- org.apache.axis2.util.MetaDataEntry
-
- All Implemented Interfaces:
Externalizable
,Serializable
,SafeSerializable
public class MetaDataEntry extends Object implements Externalizable, SafeSerializable
An internal class for holding a set of information about an object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
END_OF_LIST
-
Constructor Summary
Constructors Constructor Description MetaDataEntry()
Simple constructorMetaDataEntry(String className, String qnameAsString)
ConstructorMetaDataEntry(String className, String qnameAsString, String extraName)
ConstructorMetaDataEntry(String className, String qnameAsString, ArrayList children)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToList(MetaDataEntry e)
Add to the listArrayList
getChildren()
Get the listString
getClassName()
Get the class nameString
getExtraName()
Get the additional name associated with the objectString
getName()
This is a convenience method.QName
getQName()
Get the QNameString
getQNameAsString()
Get the QName as a stringboolean
isListEmpty()
Indicates whether the list is empty or notvoid
readExternal(ObjectInput inObject)
Restore the contents of the object that was previously saved.void
removeList()
Remove the listvoid
setChildren(ArrayList L)
Set the listvoid
setClassName(String c)
Set the class namevoid
setExtraName(String e)
Set the additional name associated with the objectvoid
setQName(String n)
Set the QNamevoid
setQName(QName q)
Set the QNamevoid
writeExternal(ObjectOutput o)
Save the contents of this object
-
-
-
Field Detail
-
END_OF_LIST
public static String END_OF_LIST
-
-
Constructor Detail
-
MetaDataEntry
public MetaDataEntry()
Simple constructor
-
MetaDataEntry
public MetaDataEntry(String className, String qnameAsString)
Constructor- Parameters:
className
- name of the object classqnameAsString
- an expanded version of the QName of this object
-
MetaDataEntry
public MetaDataEntry(String className, String qnameAsString, String extraName)
Constructor- Parameters:
className
- name of the object classqnameAsString
- an expanded version of the QName of this objectextraName
- an additional name associated withe the object
-
-
Method Detail
-
getClassName
public String getClassName()
Get the class name- Returns:
- the class name string
-
setClassName
public void setClassName(String c)
Set the class name- Parameters:
c
- the class name string
-
getQName
public QName getQName()
Get the QName- Returns:
- the QName based on the qnameAsString value
-
setQName
public void setQName(QName q)
Set the QName- Parameters:
q
- the QName
-
setQName
public void setQName(String n)
Set the QName- Parameters:
n
- the QName as a string
-
getQNameAsString
public String getQNameAsString()
Get the QName as a string- Returns:
- the QName as a string
-
getName
public String getName()
This is a convenience method. Returns the string that is used as a name.- Returns:
- the name
-
getExtraName
public String getExtraName()
Get the additional name associated with the object- Returns:
- the additional name string
-
setExtraName
public void setExtraName(String e)
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
public ArrayList getChildren()
Get the list- Returns:
- the array list
-
setChildren
public void setChildren(ArrayList L)
Set the list- Parameters:
L
- the ArrayList of MetaDataEntry objects
-
addToList
public void addToList(MetaDataEntry e)
Add to the list- Parameters:
e
- the MetaDataEntry object to add to the list
-
removeList
public void removeList()
Remove the list
-
writeExternal
public void writeExternal(ObjectOutput o) throws IOException
Save the contents of this object- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- The stream to write the object contents to- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput inObject) throws IOException, ClassNotFoundException
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:
readExternal
in interfaceExternalizable
- Parameters:
in
- The stream to read the object contents from- Throws:
IOException
ClassNotFoundException
-
-