com.edustructures.sifworks.tools.xpath
Class SIFElementPointer

java.lang.Object
  extended by org.apache.commons.jxpath.ri.model.NodePointer
      extended by com.edustructures.sifworks.tools.xpath.ADKElementPointer
          extended by com.edustructures.sifworks.tools.xpath.SIFElementPointer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, org.apache.commons.jxpath.Pointer

public class SIFElementPointer
extends ADKElementPointer

Represents a NodePointer for a SIFElement

Version:
ADK 2.0
See Also:
Serialized Form

Nested Class Summary
static class SIFElementPointer.AddChildDirective
          The set of values that can be returned from the getChildAddDirective method
 
Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer
UNKNOWN_NAMESPACE, WHOLE_COLLECTION
 
Method Summary
 org.apache.commons.jxpath.ri.model.NodeIterator attributeIterator(org.apache.commons.jxpath.ri.QName name)
           
 org.apache.commons.jxpath.ri.model.NodeIterator childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest test, boolean reverse, org.apache.commons.jxpath.ri.model.NodePointer startWith)
           
static org.apache.commons.jxpath.ri.model.NodePointer create(org.apache.commons.jxpath.ri.model.NodePointer parentPointer, SIFElement element, SIFVersion version)
           
 org.apache.commons.jxpath.ri.model.NodePointer createAttribute(org.apache.commons.jxpath.JXPathContext context, org.apache.commons.jxpath.ri.QName name)
           
 org.apache.commons.jxpath.ri.model.NodePointer createChild(org.apache.commons.jxpath.JXPathContext context, org.apache.commons.jxpath.ri.QName name, int childIndex)
           
 org.apache.commons.jxpath.ri.model.NodePointer createChild(org.apache.commons.jxpath.JXPathContext context, org.apache.commons.jxpath.ri.QName name, int childIndex, java.lang.Object value)
           
 SIFElementPointer.AddChildDirective getAddChildDirective(org.apache.commons.jxpath.ri.QName childName)
          Use by SIFXPathContext when determining if it can add a child or not.
 int getLength()
           
 boolean isCollection()
           
 boolean isLeaf()
           
 void setValue(java.lang.Object rawValue)
           
 
Methods inherited from class com.edustructures.sifworks.tools.xpath.ADKElementPointer
compareChildNodePointers, getBaseValue, getImmediateNode, getName, getVersion, isLegacyVersion
 
Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer
asPath, clone, compareTo, createPath, createPath, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isContainer, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, testNode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static org.apache.commons.jxpath.ri.model.NodePointer create(org.apache.commons.jxpath.ri.model.NodePointer parentPointer,
                                                                    SIFElement element,
                                                                    SIFVersion version)

isLeaf

public boolean isLeaf()
Specified by:
isLeaf in class org.apache.commons.jxpath.ri.model.NodePointer

isCollection

public boolean isCollection()
Specified by:
isCollection in class org.apache.commons.jxpath.ri.model.NodePointer

getLength

public int getLength()
Specified by:
getLength in class org.apache.commons.jxpath.ri.model.NodePointer

setValue

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

attributeIterator

public org.apache.commons.jxpath.ri.model.NodeIterator attributeIterator(org.apache.commons.jxpath.ri.QName name)
Overrides:
attributeIterator in class org.apache.commons.jxpath.ri.model.NodePointer

childIterator

public org.apache.commons.jxpath.ri.model.NodeIterator childIterator(org.apache.commons.jxpath.ri.compiler.NodeTest test,
                                                                     boolean reverse,
                                                                     org.apache.commons.jxpath.ri.model.NodePointer startWith)
Overrides:
childIterator in class org.apache.commons.jxpath.ri.model.NodePointer

createChild

public org.apache.commons.jxpath.ri.model.NodePointer createChild(org.apache.commons.jxpath.JXPathContext context,
                                                                  org.apache.commons.jxpath.ri.QName name,
                                                                  int childIndex)
Overrides:
createChild in class org.apache.commons.jxpath.ri.model.NodePointer

getAddChildDirective

public SIFElementPointer.AddChildDirective getAddChildDirective(org.apache.commons.jxpath.ri.QName childName)
Use by SIFXPathContext when determining if it can add a child or not.

Parameters:
childName -
Returns:

createChild

public org.apache.commons.jxpath.ri.model.NodePointer createChild(org.apache.commons.jxpath.JXPathContext context,
                                                                  org.apache.commons.jxpath.ri.QName name,
                                                                  int childIndex,
                                                                  java.lang.Object value)
Overrides:
createChild in class org.apache.commons.jxpath.ri.model.NodePointer

createAttribute

public org.apache.commons.jxpath.ri.model.NodePointer createAttribute(org.apache.commons.jxpath.JXPathContext context,
                                                                      org.apache.commons.jxpath.ri.QName name)
Overrides:
createAttribute in class org.apache.commons.jxpath.ri.model.NodePointer


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.