com.smallx.xml.infoset.memory
Class MemoryAttribute

java.lang.Object
  extended bycom.smallx.xml.infoset.memory.MemoryItem
      extended bycom.smallx.xml.infoset.memory.MemoryTextDataItem
          extended bycom.smallx.xml.infoset.memory.MemoryAttribute
All Implemented Interfaces:
Attribute, Data, Item, Location, Named, Prefixed, Text, Validity

public class MemoryAttribute
extends MemoryTextDataItem
implements Attribute


Field Summary
protected  int column
           
protected  int line
           
protected  Name name
           
protected  java.lang.String prefix
           
protected  java.util.List tokens
           
protected  TypeDefinition typeDefinition
           
protected  int validationAttempted
           
protected  int validity
           
 
Fields inherited from class com.smallx.xml.infoset.memory.MemoryItem
infoset, origin, ranking
 
Fields inherited from interface com.smallx.xml.infoset.Attribute
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
MemoryAttribute(Infoset infoset, Parent origin, Name name, java.lang.String textValue, java.lang.Object typedValue)
           
 
Method Summary
 int getColumn()
           
 Element getElement()
           
 int getLine()
           
 Name getName()
          Return the name of the object.
 java.lang.String getPrefix()
           
 java.util.Iterator getTokenizedValue()
           
 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.
 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 setText(java.lang.String textValue)
           
 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.MemoryTextDataItem
getNormalizedText, getText, getTypedValue, setTypedValue
 
Methods inherited from class com.smallx.xml.infoset.memory.MemoryItem
compareTo, getAxis, 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.Item
compareTo, getAxis, getDocument, getGeneratedId, getInfoset, getOrigin
 
Methods inherited from interface com.smallx.xml.infoset.Text
getNormalizedText, getText
 

Field Detail

line

protected int line

column

protected int column

tokens

protected java.util.List tokens

name

protected Name name

prefix

protected java.lang.String prefix

typeDefinition

protected TypeDefinition typeDefinition

validity

protected int validity

validationAttempted

protected int validationAttempted
Constructor Detail

MemoryAttribute

public MemoryAttribute(Infoset infoset,
                       Parent origin,
                       Name name,
                       java.lang.String textValue,
                       java.lang.Object typedValue)
Method Detail

setIndex

protected void setIndex(int index)
Specified by:
setIndex in class MemoryItem

getType

public byte getType()
Description copied from interface: Item
Returns the type of type node.

Specified by:
getType in interface Item

getName

public Name getName()
Description copied from interface: Named
Return the name of the object.

Specified by:
getName in interface Named

setName

public void setName(Name value)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
value - The name to set.

setName

public void setName(java.lang.String localName)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
localName - The local name to use and the namespace name is assumed to be URI.NO_NAMESPACE

setName

public void setName(java.net.URI namespaceName,
                    java.lang.String localName)
Description copied from interface: Named
Sets the name of the object.

Specified by:
setName in interface Named
Parameters:
namespaceName - The namespace name to use.
localName - The local name to use.

getPrefix

public java.lang.String getPrefix()
Specified by:
getPrefix in interface Prefixed

setPrefix

public void setPrefix(java.lang.String prefix)
Specified by:
setPrefix in interface Prefixed

getTokenizedValue

public java.util.Iterator getTokenizedValue()
Specified by:
getTokenizedValue in interface Attribute

setText

public void setText(java.lang.String textValue)
Specified by:
setText in interface Text
Overrides:
setText in class MemoryTextDataItem

getElement

public Element getElement()
Specified by:
getElement in interface Attribute

getColumn

public int getColumn()
Specified by:
getColumn in interface Location

getLine

public int getLine()
Specified by:
getLine in interface Location

setColumn

public void setColumn(int column)
Specified by:
setColumn in interface Location

setLine

public void setLine(int line)
Specified by:
setLine in interface Location

getValidity

public int getValidity()
Description copied from interface: Validity
Gets the validity.

Specified by:
getValidity in interface Validity

getValidationAttempted

public int getValidationAttempted()
Specified by:
getValidationAttempted in interface Validity

setValidity

public void setValidity(int validity,
                        int attempted)
Description copied from interface: Validity
Sets the validity and validation attempted.

Specified by:
setValidity in interface Validity
Parameters:
validity - One of the values VALID, INVALID, or NOT_KNOWN
attempted - One of the values ATTEMPTED_NONE, ATTEMPTED_FULL, or ATTEMPTED_PARTIAL

getTypeDefinition

public TypeDefinition getTypeDefinition()
Description copied from interface: Validity
Returns a type definition from the schema implementation.

Specified by:
getTypeDefinition in interface Validity

setTypeDefinition

public void setTypeDefinition(TypeDefinition typeDef)
Description copied from interface: Validity
Sets the type definition object for this item.

Specified by:
setTypeDefinition in interface Validity