Package org.eclipse.wst.xml.xpath2.processor.internal.types


org.eclipse.wst.xml.xpath2.processor.internal.types
Class NodeType



public class NodeType
extends org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType
A representation of a Node datatype

Field Summary

protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel_typeModel
    
public static java.util.ComparatorNODE_COMPARATOR
    
protected static java.lang.StringSCHEMA_TYPE_ID
    
protected static java.lang.StringSCHEMA_TYPE_IDREF
    

Constructor Summary

NodeType(org.w3c.dom.Node node , org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)

Method Summary

public booleanafter(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)
    
public static booleanafter(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a , org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)
    
public booleanbefore(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)
    
public static booleanbefore(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.NodeTypedom_to_xpath(org.w3c.dom.Node node , org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)
    
public static org.eclipse.wst.xml.xpath2.processor.ResultSequenceeliminate_dups(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
    
public java.lang.ObjectgetNativeValue()
    
protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetType()
     Looks up the available type for the node, if available
protected java.lang.ObjectgetTypedValueForPrimitiveType(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef)
    
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModelgetTypeModel()
    
protected org.eclipse.wst.xml.xpath2.api.ResultSequencegetXDMTypedValue(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef , java.util.List itemValTypes)
    
public booleanisID()
    
public booleanisIDREF()
    
protected booleanisType(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.ResultBufferlinarize(org.eclipse.wst.xml.xpath2.api.ResultBuffer rs)
    
public org.eclipse.wst.xml.xpath2.api.ResultSequencenilled()
    
public org.eclipse.wst.xml.xpath2.processor.internal.types.QNamenode_name()
     Retrieves the name of the node
public org.w3c.dom.Nodenode_value()
     Retrieves the actual node being represented
public static booleansame(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.ResultSequencesort_document_order(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
    
public org.eclipse.wst.xml.xpath2.api.ResultSequencetyped_value()
     Retrieves the actual node being represented

Field Detail

_typeModel

protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel _typeModel


NODE_COMPARATOR

public static java.util.Comparator NODE_COMPARATOR


SCHEMA_TYPE_ID

protected static java.lang.String SCHEMA_TYPE_ID


SCHEMA_TYPE_IDREF

protected static java.lang.String SCHEMA_TYPE_IDREF


Constructor Detail

NodeType

public NodeType(org.w3c.dom.Node node , org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)

Initialises according to the supplied parameters


Methods Detail

after

public boolean after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)

Parameters

two

Returns

boolean


after

public boolean after(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a , org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)

Parameters

a

b

Returns

boolean


before

public boolean before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType two)

Parameters

two

Returns

boolean


before

public boolean before(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a , org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)

Parameters

a

b

Returns

boolean


dom_to_xpath

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)

Parameters

node

tm

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType


eliminate_dups

public org.eclipse.wst.xml.xpath2.processor.ResultSequence eliminate_dups(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)

Parameters

rs

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence


getNativeValue

public java.lang.Object getNativeValue()

Returns

java.lang.Object


getType

protected org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getType()

Looks up the available type for the node, if available

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - TypeDefinition, or null


getTypedValueForPrimitiveType

protected java.lang.Object getTypedValueForPrimitiveType(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef)

Parameters

typeDef

Returns

java.lang.Object


getTypeModel

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel getTypeModel()

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel


getXDMTypedValue

protected org.eclipse.wst.xml.xpath2.api.ResultSequence getXDMTypedValue(org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition typeDef , java.util.List itemValTypes)

Parameters

typeDef

itemValTypes

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence


isID

public boolean isID()

Returns

boolean


isIDREF

public boolean isIDREF()

Returns

boolean


isType

protected boolean isType(org.w3c.dom.TypeInfo typeInfo , java.lang.String typeName)

Utility method to check to see if a particular TypeInfo matches.

Parameters

typeInfo

typeName

Returns

boolean


linarize

public org.eclipse.wst.xml.xpath2.api.ResultBuffer linarize(org.eclipse.wst.xml.xpath2.api.ResultBuffer rs)

Parameters

rs

Returns

org.eclipse.wst.xml.xpath2.api.ResultBuffer


nilled

public org.eclipse.wst.xml.xpath2.api.ResultSequence nilled()

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence


node_name

public org.eclipse.wst.xml.xpath2.processor.internal.types.QName node_name()

Retrieves the name of the node

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.QName - QName representation of the name of the node


node_value

public org.w3c.dom.Node node_value()

Retrieves the actual node being represented

Returns

org.w3c.dom.Node - Actual node being represented


same

public boolean same(org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType a , org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType b)

Parameters

a

b

Returns

boolean


sort_document_order

public org.eclipse.wst.xml.xpath2.processor.ResultSequence sort_document_order(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)

Parameters

rs

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence


typed_value

public org.eclipse.wst.xml.xpath2.api.ResultSequence typed_value()

Retrieves the actual node being represented

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - Actual node being represented