|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.smallx.xml.infoset.memory.MemoryItem
com.smallx.xml.infoset.memory.MemoryParent
com.smallx.xml.infoset.memory.MemoryElement
Field Summary | |
protected java.util.Map |
attributes
|
protected int |
column
|
protected int |
index
|
protected int |
line
|
protected Name |
name
|
protected MemoryNamespaceDataProxy |
nsProxy
|
protected java.lang.String |
prefix
|
protected NamespaceScope |
scope
|
protected TypeDefinition |
typeDefinition
|
protected int |
validationAttempted
|
protected int |
validity
|
Fields inherited from class com.smallx.xml.infoset.memory.MemoryParent |
baseURI, children |
Fields inherited from class com.smallx.xml.infoset.memory.MemoryItem |
infoset, origin, ranking |
Fields inherited from interface com.smallx.xml.infoset.Element |
TYPE |
Fields inherited from interface com.smallx.xml.infoset.Item |
ANCESTOR_AXIS, ANCESTOR_OR_SELF_AXIS, ATTRIBUTE, ATTRIBUTE_AXIS, CHARACTERS, CHILD_AXIS, COMMENT, DESCENDANT_AXIS, DESCENDANT_OR_SELF_AXIS, DOCUMENT, DOCUMENT_END, ELEMENT, ELEMENT_END, FOLLOWING_AXIS, FOLLOWING_SIBLING_AXIS, N_TYPES, NAMESPACE, NAMESPACE_AXIS, PARENT_AXIS, PRECEDING_AXIS, PRECEDING_SIBLING_AXIS, PROCESSING_INSTRUCTION, SELF_AXIS |
Fields inherited from interface com.smallx.xml.infoset.Validity |
ATTEMPTED_FULL, ATTEMPTED_NONE, ATTEMPTED_PARTIAL, INVALID, NOT_KNOWN, VALID |
Constructor Summary | |
MemoryElement(Infoset infoset,
java.net.URI base,
Name name,
NamespaceScope scope)
|
|
MemoryElement(Infoset infoset,
java.net.URI base,
Parent origin,
Name name)
|
Method Summary | |
void |
addNamespaceBinding(java.lang.String prefix,
java.net.URI namespace)
Sets the default namespace locally. |
Characters |
appendCharacters(java.lang.String data)
Appends a data object to the end of the children content. |
Characters |
appendData(java.lang.Object data)
Appends a data object to the end of the children content. |
Element |
appendElement(Name name)
Appends a new element to the end of the children content. |
Element |
appendElement(java.lang.String local)
Appends a new element to the end of the children content. |
Attribute |
getAttribute(Name name)
Gets an attribute by name. |
Attribute |
getAttribute(java.lang.String local)
Gets an attribute by an unqualified name. |
java.util.Iterator |
getAttributes()
Returns all the attributes specified on this element. |
java.lang.String |
getAttributeValue(Name name)
Gets an attribute value by name. |
java.lang.String |
getAttributeValue(java.lang.String name)
Gets an attribute value by an unqualified name. |
java.util.Iterator |
getAttributeValueTokenized(Name name)
Gets an attribute value by name. |
java.util.Iterator |
getAttributeValueTokenized(java.lang.String name)
Gets an attribute value by an unqualified name. |
java.util.Iterator |
getAxis(byte type)
|
int |
getColumn()
|
Child |
getFollowingSibling()
Returns the following sibling of this node. |
java.util.Iterator |
getFollowingSiblings()
|
java.util.Iterator |
getInScopeNamespaces()
|
int |
getLine()
|
Name |
getName()
Return the name of the object. |
NamespaceScope |
getNamespaceScope()
Returns the namespace scope associated with this element. |
java.lang.String |
getNormalizedText()
|
Child |
getPrecedingSibling()
Returns the preceeding sibling to this node. |
java.util.Iterator |
getPrecedingSiblings()
|
java.lang.String |
getPrefix()
|
java.lang.String |
getText()
|
byte |
getType()
Returns the type of type node. |
TypeDefinition |
getTypeDefinition()
Returns a type definition from the schema implementation. |
int |
getValidationAttempted()
|
int |
getValidity()
Gets the validity. |
boolean |
hasAttributes()
|
boolean |
hasNamespaceDeclarations()
Signals that the namespace scope is local to this node and not the parent's namespace scope. |
Child |
insertCharactersBefore(int index,
java.lang.String value)
Inserts a data object into the children content. |
Child |
insertDataBefore(int index,
java.lang.Object data)
Inserts a data object into the children content. |
Element |
insertElementBefore(int index,
Name name)
Inserts a new element to the end of the children content. |
Element |
insertElementBefore(int index,
java.lang.String local)
Inserts a new element into the children content. |
boolean |
isSpacePreserving()
Indicates if the element is set to preserve space. |
void |
localizeNamespaceDeclarations()
Localizes all namespace declarations. |
void |
removeAttribute(Name name)
Removes an attribute by name. |
void |
removeAttribute(java.lang.String local)
Removes an attribute by an unqualified name. |
void |
setAttribute(Name name,
java.lang.String value)
Sets an attribute value by name. |
void |
setAttribute(java.lang.String local,
java.lang.String value)
Sets an attribute value by name. |
void |
setColumn(int column)
|
protected void |
setIndex(int index)
|
void |
setLine(int line)
|
void |
setName(Name value)
Sets the name of the object. |
void |
setName(java.lang.String localName)
Sets the name of the object. |
void |
setName(java.net.URI namespaceName,
java.lang.String localName)
Sets the name of the object. |
void |
setPrefix(java.lang.String prefix)
|
void |
setTypeDefinition(TypeDefinition typeDef)
Sets the type definition object for this item. |
void |
setValidity(int validity,
int attempted)
Sets the validity and validation attempted. |
Methods inherited from class com.smallx.xml.infoset.memory.MemoryParent |
appendChild, getBaseURI, getChildAt, getChildren, getChildrenByType, getNumberOfChildren, getParent, hasChildren, insertChildBefore, removeChild, removeChildAt, setBaseURI, swapChild |
Methods inherited from class com.smallx.xml.infoset.memory.MemoryItem |
compareTo, getDocument, getGeneratedId, getInfoset, getOrigin, setRank |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.smallx.xml.infoset.Parent |
appendChild, getBaseURI, getChildAt, getChildren, getChildrenByType, getDocument, getNumberOfChildren, hasChildren, insertChildBefore, removeChild, removeChildAt, setBaseURI, swapChild |
Methods inherited from interface com.smallx.xml.infoset.Child |
compareTo, getParent |
Methods inherited from interface com.smallx.xml.infoset.Item |
getGeneratedId, getInfoset, getOrigin |
Field Detail |
protected Name name
protected java.lang.String prefix
protected java.util.Map attributes
protected NamespaceScope scope
protected int index
protected MemoryNamespaceDataProxy nsProxy
protected int line
protected int column
protected TypeDefinition typeDefinition
protected int validity
protected int validationAttempted
Constructor Detail |
public MemoryElement(Infoset infoset, java.net.URI base, Parent origin, Name name)
public MemoryElement(Infoset infoset, java.net.URI base, Name name, NamespaceScope scope)
Method Detail |
protected void setIndex(int index)
setIndex
in class MemoryItem
public byte getType()
Item
getType
in interface Item
public Name getName()
Named
getName
in interface Named
public void setName(Name value)
Named
setName
in interface Named
value
- The name to set.public void setName(java.lang.String localName)
Named
setName
in interface Named
localName
- The local name to use and the namespace name is assumed to be URI.NO_NAMESPACEpublic void setName(java.net.URI namespaceName, java.lang.String localName)
Named
setName
in interface Named
namespaceName
- The namespace name to use.localName
- The local name to use.public java.lang.String getPrefix()
getPrefix
in interface Prefixed
public void setPrefix(java.lang.String prefix)
setPrefix
in interface Prefixed
public boolean hasAttributes()
hasAttributes
in interface Element
public java.util.Iterator getAttributes()
Element
getAttributes
in interface Element
public Attribute getAttribute(Name name)
Element
getAttribute
in interface Element
name
- The name of the attribute.
public Attribute getAttribute(java.lang.String local)
Element
getAttribute
in interface Element
local
- The unqualified name of the attribute.
public java.lang.String getAttributeValue(Name name)
Element
getAttributeValue
in interface Element
name
- The name of the attribute.
public java.lang.String getAttributeValue(java.lang.String name)
Element
getAttributeValue
in interface Element
name
- The unqualified name of the attribute.
public java.util.Iterator getAttributeValueTokenized(Name name)
Element
getAttributeValueTokenized
in interface Element
name
- The name of the attribute.
public java.util.Iterator getAttributeValueTokenized(java.lang.String name)
Element
getAttributeValueTokenized
in interface Element
name
- The unqualified name of the attribute.
public void setAttribute(Name name, java.lang.String value)
Element
setAttribute
in interface Element
name
- The name of the attribute.value
- The data value to use.public void setAttribute(java.lang.String local, java.lang.String value)
Element
setAttribute
in interface Element
local
- The unqualified name of the attribute.value
- The data value to use.public void removeAttribute(Name name)
Element
removeAttribute
in interface Element
name
- The name of the attribute.public void removeAttribute(java.lang.String local)
Element
removeAttribute
in interface Element
local
- The unqualfied name of the attribute.public Element appendElement(Name name)
Element
appendElement
in interface Element
name
- The name of the element to create.
public Element appendElement(java.lang.String local)
Element
appendElement
in interface Element
local
- The local name to be interpreted by the namespace scope of the element to create.
public Element insertElementBefore(int index, Name name)
Element
insertElementBefore
in interface Element
index
- The index of the position of where to create the element where zero is the beginning of the children content.name
- The name of the element to create.
public Element insertElementBefore(int index, java.lang.String local)
Element
insertElementBefore
in interface Element
index
- The index of the position of where to create the element where zero is the beginning of the children content.local
- The local name to be interpreted by the namespace scope of the element to create.
public Characters appendData(java.lang.Object data)
Element
appendData
in interface Element
data
- The data object to append.
public Characters appendCharacters(java.lang.String data)
Element
appendCharacters
in interface Element
data
- The data object to append.
public Child insertDataBefore(int index, java.lang.Object data)
Element
insertDataBefore
in interface Element
index
- The index of the position of where to create the data child where zero is the beginning of the children content.data
- The data object to append.
public Child insertCharactersBefore(int index, java.lang.String value)
Element
insertCharactersBefore
in interface Element
index
- The index of the position of where to create the data child where zero is the beginning of the children content.value
- The data object to append.
public NamespaceScope getNamespaceScope()
Element
getNamespaceScope
in interface Element
public boolean hasNamespaceDeclarations()
Element
hasNamespaceDeclarations
in interface Element
public Child getFollowingSibling()
Child
getFollowingSibling
in interface Child
public Child getPrecedingSibling()
Child
getPrecedingSibling
in interface Child
public boolean isSpacePreserving()
Element
isSpacePreserving
in interface Element
public void addNamespaceBinding(java.lang.String prefix, java.net.URI namespace)
addNamespaceBinding
in interface Element
namespace
- The namespace name to be set as default.public void localizeNamespaceDeclarations()
Element
localizeNamespaceDeclarations
in interface Element
public java.util.Iterator getAxis(byte type)
getAxis
in interface Item
getAxis
in class MemoryParent
public java.util.Iterator getFollowingSiblings()
getFollowingSiblings
in interface Child
public java.util.Iterator getPrecedingSiblings()
getPrecedingSiblings
in interface Child
public java.util.Iterator getInScopeNamespaces()
getInScopeNamespaces
in interface Element
public int getColumn()
getColumn
in interface Location
public int getLine()
getLine
in interface Location
public void setColumn(int column)
setColumn
in interface Location
public void setLine(int line)
setLine
in interface Location
public java.lang.String getText()
getText
in interface Element
public java.lang.String getNormalizedText()
getNormalizedText
in interface Element
public int getValidity()
Validity
getValidity
in interface Validity
public int getValidationAttempted()
getValidationAttempted
in interface Validity
public void setValidity(int validity, int attempted)
Validity
setValidity
in interface Validity
validity
- One of the values VALID, INVALID, or NOT_KNOWNattempted
- One of the values ATTEMPTED_NONE, ATTEMPTED_FULL, or ATTEMPTED_PARTIALpublic TypeDefinition getTypeDefinition()
Validity
getTypeDefinition
in interface Validity
public void setTypeDefinition(TypeDefinition typeDef)
Validity
setTypeDefinition
in interface Validity
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |