org.geotools.xml.impl.jxpath
Class FeaturePropertyPointer

java.lang.Object
  extended by org.apache.commons.jxpath.ri.model.NodePointer
      extended by org.geotools.xml.impl.jxpath.FeaturePropertyPointer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, org.apache.commons.jxpath.Pointer

public class FeaturePropertyPointer
extends org.apache.commons.jxpath.ri.model.NodePointer

Pointer to a single property of a feature.

THe property of the feature is specified via index. Setting the index to -1 will cause the pointer to point at the feature id.

Author:
Justin Deoliveira, The Open Planning Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer
locale, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
 
Constructor Summary
FeaturePropertyPointer(FeaturePointer parent, int index)
          Creates the pointer.
 
Method Summary
 int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1, org.apache.commons.jxpath.ri.model.NodePointer pointer2)
          Always return 0, can never have child pointers.
 java.lang.Object getBaseValue()
           
 java.lang.Object getImmediateNode()
           
 int getLength()
          Return 1
 org.apache.commons.jxpath.ri.QName getName()
          Returns the qname with prefix as null, and local part the name of the feature attribute.
 boolean isCollection()
          Return false.
 boolean isLeaf()
          Return true.
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer
asPath, attributeIterator, childIterator, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeaturePropertyPointer

public FeaturePropertyPointer(FeaturePointer parent,
                              int index)
Creates the pointer.

Parameters:
parent - The parent pointer, pointer at the feature.
index - The index of hte property to point to, or -1 to point to the feature id.
Method Detail

isLeaf

public boolean isLeaf()
Return true.

Specified by:
isLeaf in class org.apache.commons.jxpath.ri.model.NodePointer

isCollection

public boolean isCollection()
Return false.

Specified by:
isCollection in class org.apache.commons.jxpath.ri.model.NodePointer

getLength

public int getLength()
Return 1

Specified by:
getLength in class org.apache.commons.jxpath.ri.model.NodePointer

getName

public org.apache.commons.jxpath.ri.QName getName()
Returns the qname with prefix as null, and local part the name of the feature attribute.

Specified by:
getName in class org.apache.commons.jxpath.ri.model.NodePointer

getBaseValue

public java.lang.Object getBaseValue()
Specified by:
getBaseValue in class org.apache.commons.jxpath.ri.model.NodePointer

getImmediateNode

public java.lang.Object getImmediateNode()
Specified by:
getImmediateNode in class org.apache.commons.jxpath.ri.model.NodePointer

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface org.apache.commons.jxpath.Pointer
Specified by:
setValue in class org.apache.commons.jxpath.ri.model.NodePointer

compareChildNodePointers

public int compareChildNodePointers(org.apache.commons.jxpath.ri.model.NodePointer pointer1,
                                    org.apache.commons.jxpath.ri.model.NodePointer pointer2)
Always return 0, can never have child pointers.

Specified by:
compareChildNodePointers in class org.apache.commons.jxpath.ri.model.NodePointer


Copyright © 1996-2010 Geotools. All Rights Reserved.