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


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



public class ElementType
extends org.eclipse.wst.xml.xpath2.processor.internal.types.NodeType
A representation of the ElementType datatype

Constructor Summary

ElementType()
ElementType(org.w3c.dom.Element v , org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)

Method Summary

public java.lang.StringgetStringValue()
     Retrieves a String representation of the element being stored
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
protected booleanisElementType(java.lang.String typeName)
    
public booleanisID()
    
public booleanisIDREF()
    
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 java.lang.Stringstring_type()
     Retrieves the datatype's full pathname
public static java.lang.Stringtextnode_strings(org.w3c.dom.Node node)
     Recursively concatenate TextNode strings
public org.eclipse.wst.xml.xpath2.api.ResultSequencetyped_value()
     Creates a new ResultSequence consisting of the element stored
public org.w3c.dom.Elementvalue()
     Retrieves the actual element value being represented

Constructor Detail

ElementType

public ElementType()

Initialises to a null element


ElementType

public ElementType(org.w3c.dom.Element v , org.eclipse.wst.xml.xpath2.api.typesystem.TypeModel tm)

Initialises according to the supplied parameters


Methods Detail

getStringValue

public java.lang.String getStringValue()

Retrieves a String representation of the element being stored

Returns

java.lang.String - String representation of the element being stored


getTypeDefinition

public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getTypeDefinition()

Returns

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


isElementType

protected boolean isElementType(java.lang.String typeName)

Parameters

typeName

Returns

boolean


isID

public boolean isID()

Returns

boolean


isIDREF

public boolean isIDREF()

Returns

boolean


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


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

java.lang.String - "element" which is the datatype's full pathname


textnode_strings

public java.lang.String textnode_strings(org.w3c.dom.Node node)

Recursively concatenate TextNode strings

Parameters

node - Node to recurse

Returns

java.lang.String - String representation of the node supplied


typed_value

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

Creates a new ResultSequence consisting of the element stored

Returns

org.eclipse.wst.xml.xpath2.api.ResultSequence - New ResultSequence consisting of the element stored


value

public org.w3c.dom.Element value()

Retrieves the actual element value being represented

Returns

org.w3c.dom.Element - Actual element value being represented