|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbind.xml.instance.data.AbstractData
org.jbind.xml.instance.data.AbstractSimpleData
| Constructor Summary | |
AbstractSimpleData()
|
|
| Method Summary | |
void |
acceptImpl_()
Accepts the current data implementation by creating a corresponding value for internal storage. |
protected IConstraintViolations |
completeSimpleStorageAssignment_()
|
protected void |
doAccept(java.lang.String aNormalizedValue)
Hook method that accepts the normalized value and converts it into a corresponging internal representation (the so called simple storage object). |
protected void |
doAcceptEnds_(IDataVisitor aVisitor)
|
protected void |
doAcceptStarts_(IDataVisitor aVisitor)
|
java.lang.String |
getLexicalValue_()
Gets the lexical value. |
java.lang.String |
getNormalizedValue_()
Gets the normalized value. |
java.lang.Object |
getObject()
Gets the simple storage object. |
java.lang.String |
getTextContent_()
|
void |
setLexicalValue_(java.lang.String aValue)
Sets the lexical value. |
void |
setObject(java.lang.Object aNewValue)
Sets the simple storage object; |
protected abstract void |
setSimpleStorageObject(java.lang.Object anObject)
|
java.lang.String |
toString()
Return the lexical value. |
| Methods inherited from class org.jbind.xml.instance.data.AbstractData |
accept_, addReferencedData_, createElement_, createElement_, createUncheckedAttributeData_, equals, fetchByXPath_, getAttribute_, getDataDesc_, getFixed_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, iterReferencedData_, newElementData_, numberByXPath_, removeAttributeData_, selectByXPath_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_, stringByXPath_, testByXPath_ |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jbind.xml.core.data.IAnyTypeData |
accept_, addReferencedData_, createElement_, createElement_, equals, getAttribute_, getDataDesc_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_ |
| Methods inherited from interface org.jbind.xml.core.data.ISimpleData |
getCanonicalForm_, getSimpleStorageObject, simpleStorageValueEquals, simpleStorageValueHashCode |
| Constructor Detail |
public AbstractSimpleData()
| Method Detail |
public final java.lang.String getLexicalValue_()
ISimpleData
getLexicalValue_ in interface ISimpleDatapublic final java.lang.String getNormalizedValue_()
ISimpleData
getNormalizedValue_ in interface ISimpleDatapublic final java.lang.String toString()
IAnySimpleTypeData
toString in interface IAnySimpleTypeData
public final void setLexicalValue_(java.lang.String aValue)
throws XmlException
ISimpleData
setLexicalValue_ in interface ISimpleDataaValue - (required).
XmlException
public final void acceptImpl_()
throws XmlException
IAnyTypeDataOnly 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.
acceptImpl_ in interface IAnyTypeDataXmlException - Raised iff the simple storage value could not be created.
protected void doAccept(java.lang.String aNormalizedValue)
throws XmlException
If an exception is raised during execution of the method then this data object may be inconsistent. It is in the responsibility of the caller either to rollback the changes or to discard this data object.
aNormalizedValue - (required).
XmlException - Raised iff the string can not be converted
into the internal representation.protected abstract void setSimpleStorageObject(java.lang.Object anObject)
protected final IConstraintViolations completeSimpleStorageAssignment_()
public java.lang.String getTextContent_()
getTextContent_ in interface ITextContentProviderpublic final java.lang.Object getObject()
IAnySimpleTypeData
getObject in interface IAnySimpleTypeData
public final void setObject(java.lang.Object aNewValue)
throws XmlException
IAnySimpleTypeData
setObject in interface IAnySimpleTypeDataaNewValue - (required).
XmlExceptionprotected void doAcceptStarts_(IDataVisitor aVisitor)
doAcceptStarts_ in class AbstractDataprotected void doAcceptEnds_(IDataVisitor aVisitor)
doAcceptEnds_ in class AbstractData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||