Class FeatureTypeAttributePointer
- Object
-
- NodePointer
-
- FeatureTypeAttributePointer
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,Pointer
public class FeatureTypeAttributePointer extends NodePointer
Pointer to a single attribute of a feature type.- Author:
- Niels Charlier (Curtin University of Technology)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeType
attType
the feature typeprotected PropertyDescriptor
descriptor
descriptorprotected Name
name
the indedx of hte property being pointed atprotected ComplexType
parentType
the feature type
-
Constructor Summary
Constructors Constructor Description FeatureTypeAttributePointer(NodePointer parent, ComplexType parentType, Name name)
Creates the pointer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeIterator
attributeIterator(QName qname)
NodeIterator
childIterator(NodeTest test, boolean reverse, NodePointer startWith)
int
compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)
Object
getBaseValue()
PropertyDescriptor
getDescriptor()
Object
getImmediateNode()
int
getLength()
Return number of elementsQName
getName()
Returns the qnameboolean
isCollection()
boolean
isLeaf()
void
setValue(Object value)
-
Methods inherited from class NodePointer
asPath, clone, compareTo, createAttribute, createChild, createChild, createPath, createPath, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, testNode, toString
-
-
-
-
Field Detail
-
parentType
protected ComplexType parentType
the feature type
-
attType
protected AttributeType attType
the feature type
-
descriptor
protected PropertyDescriptor descriptor
descriptor
-
name
protected Name name
the indedx of hte property being pointed at
-
-
Constructor Detail
-
FeatureTypeAttributePointer
public FeatureTypeAttributePointer(NodePointer parent, ComplexType parentType, Name name)
Creates the pointer.- Parameters:
parent
- The parent pointer, pointer at the feature type.parentType
- Feature Type of parentname
- Name of Attribute
-
-
Method Detail
-
getDescriptor
public PropertyDescriptor getDescriptor()
-
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in classNodePointer
-
isCollection
public boolean isCollection()
- Specified by:
isCollection
in classNodePointer
-
getLength
public int getLength()
Return number of elements- Specified by:
getLength
in classNodePointer
-
getName
public QName getName()
Returns the qname- Specified by:
getName
in classNodePointer
-
getBaseValue
public Object getBaseValue()
- Specified by:
getBaseValue
in classNodePointer
-
getImmediateNode
public Object getImmediateNode()
- Specified by:
getImmediateNode
in classNodePointer
-
setValue
public void setValue(Object value)
- Specified by:
setValue
in interfacePointer
- Specified by:
setValue
in classNodePointer
-
compareChildNodePointers
public int compareChildNodePointers(NodePointer pointer1, NodePointer pointer2)
- Specified by:
compareChildNodePointers
in classNodePointer
-
childIterator
public NodeIterator childIterator(NodeTest test, boolean reverse, NodePointer startWith)
- Overrides:
childIterator
in classNodePointer
-
attributeIterator
public NodeIterator attributeIterator(QName qname)
- Overrides:
attributeIterator
in classNodePointer
-
-