|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.DataElement
The DataElement class is the abstract base class for Data.
Field Summary | |
protected java.lang.String |
description
|
protected java.lang.String |
name
|
protected ElementState |
state
|
Constructor Summary | |
DataElement()
|
Method Summary | |
abstract java.lang.Object |
clone()
This method must be implemented by the subclasses |
Externalizer |
externalizer()
Returns the externalizer instance of this class. |
java.lang.String |
getDescription()
Returns the value of description. |
PropertyDescription |
getDescriptor()
Returns the PropertyDescriptor for this business object. |
DataElement |
getElementAt(java.lang.String aName)
Throws an exception. |
ErrorInfo |
getErrorInfo()
Returns the errorInfo attribute |
static Externalizer |
getExternalizer()
Gets the externalizer. |
Key |
getKey()
Returns a Key object which can be used to identify this business object. |
java.lang.String |
getName()
Gets the name property (java.lang.String) value. |
ElementState |
getState()
Gets the state attribute. |
java.lang.String |
getTagName()
Gets a tag name. |
abstract java.lang.Object |
getValue()
Returns the value of the data element. |
abstract Vector |
nestedElements()
Returns all the DataElements included in a collection at any level. |
abstract void |
nestedElements(java.util.Hashtable theTable)
Returns all the DataElements included in this collection at any level. |
abstract Vector |
nestedFields()
Returns all the DataFields at any level included in a collection. |
void |
readExternal()
Initializes a DataElement with its external value. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
static java.lang.Object |
readObject(java.lang.String name)
Instantiates a DataElement named name from the definition file. |
DataElement |
removeElementAt(java.lang.String aName)
Throws an exception. |
void |
removeExternal()
This method removes the tags for this object from the definition file where it is externalized. |
void |
setDescription(java.lang.String aDescription)
Sets the value of description. |
void |
setDescriptor(PropertyDescription descriptor)
Sets the PropertyDescriptor for this business object to that passed. |
void |
setErrorInfo(ErrorInfo anErrorInfo)
Sets the errorInfo attribute |
static void |
setExternalizer(Externalizer anExternalizer)
Sets the externalizer. |
void |
setName(java.lang.String aName)
Sets the name property (java.lang.String) value. |
void |
setState(ElementState aState)
Sets the state attribute. |
abstract void |
setValue(java.lang.Object aValue)
Throws an exception. |
Vector |
toStrings()
Returns a visual representation of this data element. |
Vector |
toTags()
Returns a Vector with the DataElement represented as a Tag |
abstract java.lang.Object |
validate(java.lang.Object toValidate)
This method must be implemented by the subclasses |
void |
writeExternal()
Writes this instance converted in tags to a file. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for DataElement. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String name
protected java.lang.String description
protected ElementState state
Constructor Detail |
public DataElement()
Method Detail |
public abstract java.lang.Object clone() throws java.lang.CloneNotSupportedException
public Externalizer externalizer() throws java.io.IOException
public java.lang.String getDescription()
public PropertyDescription getDescriptor()
public DataElement getElementAt(java.lang.String aName) throws DSEObjectNotFoundException
aName
- java.lang.Stringpublic ErrorInfo getErrorInfo()
public static Externalizer getExternalizer() throws java.io.IOException
public Key getKey() throws DSETypeException
public java.lang.String getName()
setName(java.lang.String)
public ElementState getState()
public java.lang.String getTagName()
public abstract java.lang.Object getValue()
public abstract Vector nestedElements()
public abstract void nestedElements(java.util.Hashtable theTable)
public abstract Vector nestedFields()
public void readExternal() throws java.io.IOException
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
s
- java.io.ObjectInputpublic static java.lang.Object readObject(java.lang.String name) throws java.io.IOException
public DataElement removeElementAt(java.lang.String aName) throws DSEObjectNotFoundException
aName
- java.lang.Stringpublic void removeExternal() throws java.io.IOException
public void setDescription(java.lang.String aDescription)
aDescription
- java.lang.Stringpublic void setDescriptor(PropertyDescription descriptor)
descriptor
- PropertyDescriptionpublic void setErrorInfo(ErrorInfo anErrorInfo)
public static void setExternalizer(Externalizer anExternalizer)
anExternalizer
- com.ibm.dse.base.Externalizerpublic void setName(java.lang.String aName)
name
- The new value for the property.getName()
public void setState(ElementState aState)
aState
- com.ibm.dse.base.types.ElementStatepublic abstract void setValue(java.lang.Object aValue) throws DSEInvalidArgumentException
aValue
- java.lang.Objectpublic Vector toStrings()
public Vector toTags() throws java.io.IOException
public abstract java.lang.Object validate(java.lang.Object toValidate) throws DSETypeException
public void writeExternal() throws java.io.IOException
public void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
s
- java.io.ObjectOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |