|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbind.xml.instance.impl.Impl
org.jbind.xml.instance.impl.DataImpl
org.jbind.xml.instance.impl.AttributeImpl
| Constructor Summary | |
AttributeImpl(IElementImpl aParent,
java.lang.String aNamespace,
java.lang.String aName,
ITextContentProvider aProvider,
boolean anIsDefault,
ILocation aLocation)
|
|
AttributeImpl(IElementImpl aParent,
java.lang.String aNamespace,
java.lang.String aName,
java.lang.String aValue,
boolean anIsDefault,
ILocation aLocation)
|
|
| Method Summary | |
void |
accept(IDataImplVisitor aVisitor)
|
IAnyTypeData |
getAttributeData(java.lang.String aNamespace,
java.lang.String aLocalName)
Gets the data object of an attribute. |
java.util.Map |
getPrefixToNamespaceMapping()
Gets the prefix to namespace mapping. |
java.lang.String |
getTextContent()
Gets the textual content. |
boolean |
hasTextContent()
Checks if the implementation has textual content. |
boolean |
isDefault()
Checks if the data implementation is a default value or if a value was assigned explicitly. |
boolean |
isNil()
Indicates if the data implementation was assigned "nil". |
java.util.Iterator |
iterAttributes(java.lang.String aNamespace,
java.lang.String aName)
Iterates the attribute data objects for the specified namespace and name. |
java.util.ListIterator |
iterChildren()
Iterates the children. |
java.util.ListIterator |
iterElementData(java.lang.String aNamespace,
java.lang.String aLocalName)
Iterates the data objects for the specified namespace and element name. |
void |
restoreTextContent(ITextContentMemento aMemento)
|
ITextContentMemento |
saveTextContent()
|
void |
setTextContent(ITextContentProvider aTextContentProvider)
Sets the textual content by specifiying a provider for lazy evaluation. |
void |
setTextContent(java.lang.String aString)
Sets the textual content. |
| Methods inherited from class org.jbind.xml.instance.impl.DataImpl |
getData, getNamespace, getParent, getParentImpl, getPartName, setData |
| Methods inherited from class org.jbind.xml.instance.impl.Impl |
getLocation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jbind.xml.core.bridge.IDataImpl |
getData, getNamespace, getPartName, setData |
| Methods inherited from interface org.jbind.xml.base.IHasLocation |
getLocation |
| Methods inherited from interface org.jbind.xml.core.bridge.IImplChild |
getParentImpl |
| Constructor Detail |
public AttributeImpl(IElementImpl aParent,
java.lang.String aNamespace,
java.lang.String aName,
ITextContentProvider aProvider,
boolean anIsDefault,
ILocation aLocation)
public AttributeImpl(IElementImpl aParent,
java.lang.String aNamespace,
java.lang.String aName,
java.lang.String aValue,
boolean anIsDefault,
ILocation aLocation)
| Method Detail |
public void accept(IDataImplVisitor aVisitor)
throws XmlException
accept in interface IImplXmlException
public IAnyTypeData getAttributeData(java.lang.String aNamespace,
java.lang.String aLocalName)
IImpl
getAttributeData in interface IImplaNamespace - (required).aLocalName - (required).
public boolean isDefault()
IImplWithText
isDefault in interface IImplWithTexttrue iff the data implementation is a default value.public boolean isNil()
IImpl
isNil in interface IImpltrue iff the data implementation was assigned
"nil".
public java.util.Iterator iterAttributes(java.lang.String aNamespace,
java.lang.String aName)
IDataImpl
iterAttributes in interface IDataImplaNamespace - (optional).aName - (optional).
IAnyTypeData.public java.util.ListIterator iterChildren()
IImpl
iterChildren in interface IImplIImpl.
public java.util.ListIterator iterElementData(java.lang.String aNamespace,
java.lang.String aLocalName)
IImpl
iterElementData in interface IImplaNamespace - (required).aLocalName - (required).
IAnyTypeData.public java.util.Map getPrefixToNamespaceMapping()
IImpl
getPrefixToNamespaceMapping in interface IImplpublic boolean hasTextContent()
IImplWithText
Attribute implementations will always return true because
attributes take their default values only if they are not present in the
instance.
Element implementation will return true iff their text content
is null or equal to the empty string. In other words the default
value of an element is used when the element is empty.
(cf. the note at W3C XML-Schema-Structure specification section 3.1.1).
hasTextContent in interface IImplWithTexttrue iff there is textual content.public void restoreTextContent(ITextContentMemento aMemento)
restoreTextContent in interface IImplWithTextpublic ITextContentMemento saveTextContent()
saveTextContent in interface IImplWithTextpublic java.lang.String getTextContent()
IImplWithText
getTextContent in interface IImplWithTextpublic void setTextContent(ITextContentProvider aTextContentProvider)
IImplWithText
setTextContent in interface IImplWithTextaTextContentProvider - (required).public void setTextContent(java.lang.String aString)
IImplWithText
setTextContent in interface IImplWithTextaString - (required).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||