Package 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.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.dom4j.DocumentFactory
cache
-
-
Constructor Summary
Constructors Constructor Description DatatypeElementFactory(QName elementQName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
createAttribute(Element owner, QName qname, java.lang.String value)
Element
createElement(QName qname)
com.sun.msv.datatype.xsd.XSDatatype
getAttributeXSDatatype(QName attributeQName)
DOCUMENT ME!com.sun.msv.datatype.xsd.XSDatatype
getChildElementXSDatatype(QName qname)
DOCUMENT ME!QName
getQName()
DOCUMENT ME!void
setAttributeXSDatatype(QName attributeQName, com.sun.msv.datatype.xsd.XSDatatype type)
Registers the givenXSDatatype
for the given <attribute> QNamesvoid
setChildElementXSDatatype(QName qname, com.sun.msv.datatype.xsd.XSDatatype dataType)
-
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
-
-
-
-
Constructor Detail
-
DatatypeElementFactory
public DatatypeElementFactory(QName elementQName)
-
-
Method Detail
-
getQName
public QName getQName()
DOCUMENT ME!- Returns:
- the QName this element factory is associated with
-
getAttributeXSDatatype
public com.sun.msv.datatype.xsd.XSDatatype getAttributeXSDatatype(QName attributeQName)
DOCUMENT ME!- Parameters:
attributeQName
- DOCUMENT ME!- Returns:
- the
XSDatatype
associated with the given Attribute QName
-
setAttributeXSDatatype
public void setAttributeXSDatatype(QName attributeQName, com.sun.msv.datatype.xsd.XSDatatype type)
Registers the givenXSDatatype
for the given <attribute> QNames- Parameters:
attributeQName
- DOCUMENT ME!type
- DOCUMENT ME!
-
getChildElementXSDatatype
public com.sun.msv.datatype.xsd.XSDatatype getChildElementXSDatatype(QName qname)
DOCUMENT ME!- Parameters:
qname
- DOCUMENT ME!- 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 classDocumentFactory
-
createAttribute
public Attribute createAttribute(Element owner, QName qname, java.lang.String value)
- Overrides:
createAttribute
in classDocumentFactory
-
-