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


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



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

Field Summary

package-private org.w3c.dom.Attr_value
    

Constructor Summary

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

Method Summary

public java.lang.StringgetStringValue()
     Retrieves a String representation of the attribute being stored
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinitiongetTypeDefinition()
    
protected booleanisAttrType(java.lang.String typeName)
    
public booleanisID()
     Checks if the current node is of type ID
public booleanisIDREF()
    
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 org.eclipse.wst.xml.xpath2.api.ResultSequencetyped_value()
     Creates a new ResultSequence consisting of the attribute being stored

Field Detail

_value

package-private org.w3c.dom.Attr _value


Constructor Detail

AttrType

public AttrType()

Initialises to null


AttrType

public AttrType(org.w3c.dom.Attr 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 attribute being stored

Returns

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


getTypeDefinition

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

Returns

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


isAttrType

protected boolean isAttrType(java.lang.String typeName)

Parameters

typeName

Returns

boolean


isID

public boolean isID()

Checks if the current node is of type ID

Returns

boolean


isIDREF

public boolean isIDREF()

Returns

boolean


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 - Name of the node


string_type

public java.lang.String string_type()

Retrieves the datatype's full pathname

Returns

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


typed_value

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

Creates a new ResultSequence consisting of the attribute being stored

Returns

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