|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base for all data objects. Data objects are wrapper classes for simple storage values and are backed by data implementations that store their complex content and attributes (if applicable).
Method Summary | |
void |
accept_(IDataVisitor aVisitor)
Accepts a data visitor. |
void |
acceptImpl_()
Accepts the current data implementation by creating a corresponding value for internal storage. |
void |
addReferencedData_(java.lang.String aKey,
IAnyTypeData aData)
Adds a data object that is referenced by this data object. |
IAnyTypeData |
createElement_(IElemRefOrDecl anElemRefOrDecl,
IAnyType anOverloadingType,
java.lang.String aTextContent)
Generice method for creating an element. |
IAnyTypeData |
createElement_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
java.lang.String aSimpleContent)
Generice method for creating an element. |
boolean |
equals(java.lang.Object anObject)
Checks either reference equality or value equality depending on the type of the data. |
IAnyTypeData |
getAttribute_(java.lang.String aNamespace,
java.lang.String aName)
Generic method for getting an attribute. |
IDataDesc |
getDataDesc_()
Gets the description of the data. |
IDataImpl |
getImpl_()
Gets the data implementation of the data object. |
IComplexData |
getParent_()
Gets the parent data object. |
IElemRefOrDecl |
getSubstitutionHead_()
Gets the element declaration of the substition head. |
IAnyType |
getType_()
Gets the type of the data object. |
int |
hashCode()
Calculates the hash code. |
boolean |
isDefault_()
Checks if the data has a default value or if it has an explicitly assigned value. |
boolean |
isNil_()
Indicates that the data is nil. |
java.util.Iterator |
iterAttributes_(java.lang.String aNamespace,
java.lang.String aName)
Generic method for iterating attributes. |
java.util.ListIterator |
iterElements_(java.lang.String aNamespace,
java.lang.String aName)
Generic method for iterating elements. |
IAnyTypeData |
setAttribute_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
java.lang.String aTextContent)
Generic method for setting an attribute. |
void |
setDataDesc_(IDataDesc aDataDesc)
Sets the data description. |
void |
setImpl_(IDataImpl anImpl)
Sets the implementation of the data object. |
void |
setSubstitutionHead_(IElemRefOrDecl aHead)
Sets the substitution head. |
void |
setType_(IAnyType aType)
Set the type of the data object. |
Method Detail |
public IAnyType getType_()
public IDataImpl getImpl_()
public void acceptImpl_() throws XmlException
Only the constraints that are inherent in the creation of the simple storage value are checked. Any further constraints of the type of the data object that constrain the possible values are not checked.
This method treats only the textual content of the data implementation
getTextContent
. Attributes and elements
are not considered.
XmlException
- Raised iff the simple storage value could not be created.public void setType_(IAnyType aType)
aType
- (required).public void setImpl_(IDataImpl anImpl) throws XmlException
anImpl
- (required).
XmlException
public boolean isDefault_()
true
iff the data has a default value.public boolean isNil_()
true
iff the data is nil.public void accept_(IDataVisitor aVisitor)
aVisitor
- (required).public void addReferencedData_(java.lang.String aKey, IAnyTypeData aData)
aKey
- (required). Identifies the reference constraint that
referenced the data object.aData
- (required). The referenced data.public IDataDesc getDataDesc_()
public void setDataDesc_(IDataDesc aDataDesc)
aDataDesc
- (required).public IElemRefOrDecl getSubstitutionHead_()
public void setSubstitutionHead_(IElemRefOrDecl aHead)
aHead
- (required).public boolean equals(java.lang.Object anObject)
anObject
- (optional).
true
iff the specified object is of the same
type or of a sub type as this data and has the same value as this data.public int hashCode()
public IAnyTypeData createElement_(java.lang.String aNamespace, java.lang.String aName, IAnyType anOverloadingType, java.lang.String aSimpleContent) throws XmlException
aNamespace
- (required).aName
- (required).anOverloadingType
- (optional). If no overloading type is specified
then the declared element type is used. If the element to be created corresponds
to an element wildcard then the anyType
is used.aSimpleContent
- (optional). If the element type has a simple content
model then the simple content parameter is required.
XmlException
- Raised iff the element could not be created. Indicates
that the element to be created is not allowed in the content model.public IAnyTypeData createElement_(IElemRefOrDecl anElemRefOrDecl, IAnyType anOverloadingType, java.lang.String aTextContent) throws XmlException
anOverloadingType
- (optional). If no overloading type is specified
then the declared element type is used. If the element to be created corresponds
to an element wildcard then the anyType
is used.
XmlException
- Raised iff the element could not be created.public java.util.ListIterator iterElements_(java.lang.String aNamespace, java.lang.String aName)
aNamespace
- (optional). If no namespace is specified then elements
of all namespaces are considered.aName
- (optional). If no name is specified then elements with
arbitrary names are considered.
IAnyTypeData
objects
corresponding to the specified namespace and name.public IAnyTypeData setAttribute_(java.lang.String aNamespace, java.lang.String aName, IAnyType anOverloadingType, java.lang.String aTextContent) throws XmlException
aNamespace
- (required).aName
- (required).anOverloadingType
- (optional). If no overloading type is specified
then the declared attribute type is used. If the attribute to be set corresponds
to an attribute wildcard then the anySimpleType
is used.aTextContent
- (required).
XmlException
- Raised iff the attribute could not be set.public java.util.Iterator iterAttributes_(java.lang.String aNamespace, java.lang.String aName)
aNamespace
- (optional). If no namespace is specified then attributes
of all namespaces are returned.aName
- (optional). If no name is specified then attributes with
arbitrary names are returned.
IAnyTypeData
objects corresponding to the specified namespace and name.public IAnyTypeData getAttribute_(java.lang.String aNamespace, java.lang.String aName)
aNamespace
- (required).aName
- (required).
public IComplexData getParent_()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |