|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbind.xml.instance.data.AbstractData
Base class for data objects.
| Constructor Summary | |
AbstractData()
|
|
| Method Summary | |
void |
accept_(IDataVisitor aVisitor)
Accepts a data visitor. |
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 aTextContent)
Generice method for creating an element. |
protected IAnyTypeData |
createUncheckedAttributeData_(java.lang.String aNamespace,
java.lang.String aName,
ITextContentProvider aProvider)
Creates unchecked data objects for attributes. |
protected abstract void |
doAcceptEnds_(IDataVisitor aVisitor)
|
protected abstract void |
doAcceptStarts_(IDataVisitor aVisitor)
|
boolean |
equals(java.lang.Object anObject)
Checks either reference equality or value equality depending on the type of the data. |
protected IAnyTypeData |
fetchByXPath_(java.lang.String anXPathMethodName)
|
IAnyTypeData |
getAttribute_(java.lang.String aNamespace,
java.lang.String aName)
Generic method for getting an attribute. |
IDataDesc |
getDataDesc_()
Gets the description of the data. |
protected ISimpleData |
getFixed_()
|
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. |
protected java.util.ListIterator |
iterReferencedData_(java.lang.String aKey)
|
protected IAnyTypeData |
newElementData_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
ITextContentProvider aProvider)
|
protected double |
numberByXPath_(java.lang.String anXPathMethodName)
|
protected void |
removeAttributeData_(java.lang.String aNamespace,
java.lang.String aName)
|
protected java.util.Iterator |
selectByXPath_(java.lang.String anXPathMethodName)
|
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 aDecl)
Sets the substitution head. |
void |
setType_(IAnyType aType)
Set the type of the data object. |
protected java.lang.String |
stringByXPath_(java.lang.String anXPathMethodName)
|
protected boolean |
testByXPath_(java.lang.String anXPathMethodName)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jbind.xml.core.data.IAnyTypeData |
acceptImpl_ |
| Constructor Detail |
public AbstractData()
| Method Detail |
public IDataDesc getDataDesc_()
IAnyTypeData
getDataDesc_ in interface IAnyTypeDatapublic void setDataDesc_(IDataDesc aDataDesc)
IAnyTypeData
setDataDesc_ in interface IAnyTypeDataaDataDesc - (required).public IElemRefOrDecl getSubstitutionHead_()
IAnyTypeData
getSubstitutionHead_ in interface IAnyTypeDatapublic void setSubstitutionHead_(IElemRefOrDecl aDecl)
IAnyTypeData
setSubstitutionHead_ in interface IAnyTypeDataaDecl - (required).protected ISimpleData getFixed_()
public IAnyType getType_()
IAnyTypeData
getType_ in interface IAnyTypeDatapublic void setType_(IAnyType aType)
IAnyTypeData
setType_ in interface IAnyTypeDataaType - (required).public IDataImpl getImpl_()
IAnyTypeData
getImpl_ in interface IAnyTypeDatapublic final void setImpl_(IDataImpl anImpl)
IAnyTypeData
setImpl_ in interface IAnyTypeDataanImpl - (required).
public IAnyTypeData getAttribute_(java.lang.String aNamespace,
java.lang.String aName)
IAnyTypeData
getAttribute_ in interface IAnyTypeDataaNamespace - (required).aName - (required).
public java.util.Iterator iterAttributes_(java.lang.String aNamespace,
java.lang.String aName)
IAnyTypeData
iterAttributes_ in interface IAnyTypeDataaNamespace - (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 final boolean isDefault_()
IAnyTypeData
isDefault_ in interface IAnyTypeDatatrue iff the data has a default value.public final boolean isNil_()
IAnyTypeData
isNil_ in interface IAnyTypeDatatrue iff the data is nil.public final void accept_(IDataVisitor aVisitor)
IAnyTypeData
accept_ in interface IAnyTypeDataaVisitor - (required).protected abstract void doAcceptStarts_(IDataVisitor aVisitor)
protected abstract void doAcceptEnds_(IDataVisitor aVisitor)
public void addReferencedData_(java.lang.String aKey,
IAnyTypeData aData)
IAnyTypeData
addReferencedData_ in interface IAnyTypeDataaKey - (required). Identifies the reference constraint that
referenced the data object.aData - (required). The referenced data.protected java.util.ListIterator iterReferencedData_(java.lang.String aKey)
public java.util.ListIterator iterElements_(java.lang.String aNamespace,
java.lang.String aName)
IAnyTypeData
iterElements_ in interface IAnyTypeDataaNamespace - (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 IComplexData getParent_()
IAnyTypeData
getParent_ in interface IAnyTypeData
protected IAnyTypeData createUncheckedAttributeData_(java.lang.String aNamespace,
java.lang.String aName,
ITextContentProvider aProvider)
throws XmlException
createData
method.
The supplied text content provider is used only if the textual content of the assigned value is really needed in the creation of the data object. This happens if a data object of a union type is created because an intelligent guess is made about which member type of the union to choose.
aNamespace - (required).aName - (required).
XmlException
public IAnyTypeData setAttribute_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
java.lang.String aTextContent)
throws XmlException
IAnyTypeData
setAttribute_ in interface IAnyTypeDataaNamespace - (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.
protected void removeAttributeData_(java.lang.String aNamespace,
java.lang.String aName)
throws XmlException
XmlException
public IAnyTypeData createElement_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
java.lang.String aTextContent)
throws XmlException
IAnyTypeData
createElement_ in interface IAnyTypeDataaNamespace - (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.aTextContent - (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
IAnyTypeData
createElement_ in interface IAnyTypeDataanOverloadingType - (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.
protected IAnyTypeData newElementData_(java.lang.String aNamespace,
java.lang.String aName,
IAnyType anOverloadingType,
ITextContentProvider aProvider)
throws XmlException
XmlException
protected java.util.Iterator selectByXPath_(java.lang.String anXPathMethodName)
throws XmlException
XmlException
protected IAnyTypeData fetchByXPath_(java.lang.String anXPathMethodName)
throws XmlException
XmlException
protected boolean testByXPath_(java.lang.String anXPathMethodName)
throws XmlException
XmlException
protected double numberByXPath_(java.lang.String anXPathMethodName)
throws XmlException
XmlException
protected java.lang.String stringByXPath_(java.lang.String anXPathMethodName)
throws XmlException
XmlExceptionpublic final boolean equals(java.lang.Object anObject)
IAnyTypeData
equals in interface IAnyTypeDatapublic final int hashCode()
IAnyTypeData
hashCode in interface IAnyTypeData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||