Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class NodeType extends org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypeA representation of a Node datatype
Field Summary | |
protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel | _typeModel |
public static java.util.Comparator | NODE_COMPARATOR |
protected static java.lang.String | SCHEMA_TYPE_ID |
protected static java.lang.String | SCHEMA_TYPE_IDREF |
Constructor Summary |
NodeType(org.w3c.dom.Node node
,
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm) |
Method Summary | |
public boolean | after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two) |
public static boolean | after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b) |
public boolean | before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two) |
public static boolean | before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b) |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType | dom_to_xpath(org.w3c.dom.Node node
,
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm) |
public static org.eclipse.wst.xml.xpath2.processor.ResultSequence | eliminate_dups(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs) |
public java.lang.Object | getNativeValue() |
protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getType() Looks up the available type for the node, if available |
protected java.lang.Object | getTypedValueForPrimitiveType(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef) |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel | getTypeModel() |
protected org.eclipse.wst.xml.xpath2.api.ResultSequence | getXDMTypedValue(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef
,
java.util.List itemValTypes) |
public boolean | isID() |
public boolean | isIDREF() |
protected boolean | isType(org.w3c.dom.TypeInfo typeInfo
,
java.lang.String typeName) Utility method to check to see if a particular TypeInfo matches. |
public static org.eclipse.wst.xml.xpath2.api.ResultBuffer | linarize(org.eclipse.wst.xml.xpath2.api.ResultBuffer rs) |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | nilled() |
public org.eclipse.wst.xml.xpath2.processor.internal.types.QName | node_name() Retrieves the name of the node |
public org.w3c.dom.Node | node_value() Retrieves the actual node being represented |
public static boolean | same(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b) |
public static org.eclipse.wst.xml.xpath2.processor.ResultSequence | sort_document_order(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs) |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | typed_value() Retrieves the actual node being represented |
Field Detail |
protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel _typeModel
public static java.util.Comparator NODE_COMPARATOR
protected static java.lang.String SCHEMA_TYPE_ID
protected static java.lang.String SCHEMA_TYPE_IDREF
Constructor Detail |
public NodeType(org.w3c.dom.Node node
,
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)
Initialises according to the supplied parameters
Methods Detail |
public boolean after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)
two
boolean
public boolean after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)
a
b
boolean
public boolean before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)
two
boolean
public boolean before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)
a
b
boolean
public org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType dom_to_xpath(org.w3c.dom.Node node
,
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)
node
tm
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType
public org.eclipse.wst.xml.xpath2.processor.ResultSequence eliminate_dups(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
rs
org.eclipse.wst.xml.xpath2.processor.ResultSequence
public java.lang.Object getNativeValue()
java.lang.Object
protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getType()
Looks up the available type for the node, if available
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition
- TypeDefinition, or null
protected java.lang.Object getTypedValueForPrimitiveType(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef)
typeDef
java.lang.Object
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel getTypeModel()
org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel
protected org.eclipse.wst.xml.xpath2.api.ResultSequence getXDMTypedValue(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef
,
java.util.List itemValTypes)
typeDef
itemValTypes
org.eclipse.wst.xml.xpath2.api.ResultSequence
public boolean isID()
boolean
public boolean isIDREF()
boolean
protected boolean isType(org.w3c.dom.TypeInfo typeInfo
,
java.lang.String typeName)
Utility method to check to see if a particular TypeInfo matches.
typeInfo
typeName
boolean
public org.eclipse.wst.xml.xpath2.api.ResultBuffer linarize(org.eclipse.wst.xml.xpath2.api.ResultBuffer rs)
rs
org.eclipse.wst.xml.xpath2.api.ResultBuffer
public org.eclipse.wst.xml.xpath2.api.ResultSequence nilled()
org.eclipse.wst.xml.xpath2.api.ResultSequence
public org.eclipse.wst.xml.xpath2.processor.internal.types.QName node_name()
Retrieves the name of the node
org.eclipse.wst.xml.xpath2.processor.internal.types.QName
- QName representation of the name of the node
public org.w3c.dom.Node node_value()
Retrieves the actual node being represented
org.w3c.dom.Node
- Actual node being represented
public boolean same(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a
,
org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)
a
b
boolean
public org.eclipse.wst.xml.xpath2.processor.ResultSequence sort_document_order(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
rs
org.eclipse.wst.xml.xpath2.processor.ResultSequence
public org.eclipse.wst.xml.xpath2.api.ResultSequence typed_value()
Retrieves the actual node being represented
org.eclipse.wst.xml.xpath2.api.ResultSequence
- Actual node being represented