org.dom4j.datatype
Class DatatypeElementFactory
java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.datatype.DatatypeElementFactory
- All Implemented Interfaces:
- java.io.Serializable
- public class DatatypeElementFactory
- extends DocumentFactory
DatatypeElementFactory
is a factory for a specific Element
in an XML Schema.
- Version:
- $Revision: 1.7 $
- Author:
- James Strachan, Yuxin Ruan
- See Also:
- Serialized Form
Methods inherited from class org.dom4j.DocumentFactory |
createAttribute, createCDATA, createComment, createDocType, createDocument, createDocument, createDocument, createElement, createElement, createEntity, createNamespace, createPattern, createProcessingInstruction, createProcessingInstruction, createQName, createQName, createQName, createQName, createQNameCache, createSingleton, createText, createXPath, createXPath, createXPathFilter, createXPathFilter, getInstance, getQNames, getXPathNamespaceURIs, init, intern, setXPathNamespaceURIs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatatypeElementFactory
public DatatypeElementFactory(QName elementQName)
getQName
public QName getQName()
- Returns:
- the QName this element factory is associated with
getAttributeXSDatatype
public com.sun.msv.datatype.xsd.XSDatatype getAttributeXSDatatype(QName attributeQName)
- Returns:
- the
XSDatatype
associated with the given Attribute
QName
setAttributeXSDatatype
public void setAttributeXSDatatype(QName attributeQName,
com.sun.msv.datatype.xsd.XSDatatype dataType)
- Registers the given
XSDatatype
for the given
<attribute> QNames
getChildElementXSDatatype
public com.sun.msv.datatype.xsd.XSDatatype getChildElementXSDatatype(QName qname)
- Returns:
- the
XSDatatype
associated with the given child
Element QName
setChildElementXSDatatype
public void setChildElementXSDatatype(QName qname,
com.sun.msv.datatype.xsd.XSDatatype dataType)
createElement
public Element createElement(QName qname)
- Overrides:
createElement
in class DocumentFactory
createAttribute
public Attribute createAttribute(Element owner,
QName qname,
java.lang.String value)
- Overrides:
createAttribute
in class DocumentFactory
Copyright © 2004 MetaStuff Ltd. All Rights Reserved. Hosted by