org.dom4j.datatype

Class DatatypeAttribute

public class DatatypeAttribute extends AbstractAttribute implements SerializationContext, ValidationContext

DatatypeAttribute represents an Attribute which supports the XML Schema Data Types specification.

Version: $Revision: 1.9 $

Author: James Strachan

Constructor Summary
DatatypeAttribute(QName qname, XSDatatype datatype)
DatatypeAttribute(QName qname, XSDatatype datatype, String text)
Method Summary
protected ObjectconvertToValue(String txt)
StringgetBaseUri()
ObjectgetData()
StringgetNamespacePrefix(String uri)
ElementgetParent()
QNamegetQName()
StringgetValue()
XSDatatypegetXSDatatype()
Returns the MSV XSDatatype for this node
booleanisNotation(String notationName)
booleanisReadOnly()
booleanisUnparsedEntity(String entityName)
StringresolveNamespacePrefix(String prefix)
voidsetData(Object data)
voidsetParent(Element parent)
voidsetValue(String value)
booleansupportsParent()
StringtoString()
protected voidvalidate(String txt)

Constructor Detail

DatatypeAttribute

public DatatypeAttribute(QName qname, XSDatatype datatype)

DatatypeAttribute

public DatatypeAttribute(QName qname, XSDatatype datatype, String text)

Method Detail

convertToValue

protected Object convertToValue(String txt)

getBaseUri

public String getBaseUri()

getData

public Object getData()

getNamespacePrefix

public String getNamespacePrefix(String uri)

getParent

public Element getParent()

getQName

public QName getQName()

getValue

public String getValue()

getXSDatatype

public XSDatatype getXSDatatype()
Returns the MSV XSDatatype for this node

Returns: DOCUMENT ME!

isNotation

public boolean isNotation(String notationName)

isReadOnly

public boolean isReadOnly()

isUnparsedEntity

public boolean isUnparsedEntity(String entityName)

resolveNamespacePrefix

public String resolveNamespacePrefix(String prefix)

setData

public void setData(Object data)

setParent

public void setParent(Element parent)

setValue

public void setValue(String value)

supportsParent

public boolean supportsParent()

toString

public String toString()

validate

protected void validate(String txt)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge