Top Description Fields Constructors Methods
org.dom4j.datatype

public Class DatatypeElementFactory

extends DocumentFactory
Class Inheritance
Imports
com.sun.msv.datatype.xsd.XSDatatype, java.util.HashMap, .Map, org.dom4j.Attribute, .DocumentFactory, .Element, .QName

DatatypeElementFactory is a factory for a specific Element in an XML Schema.

Authors
James Strachan , Yuxin Ruan
Version
$Revision: 1.9 $

Field Summary

Modifier and TypeField and Description
private Map<QName, XSDatatype>
attributeXSDatatypes

Cache of XSDatatype instances per Attribute QName

private Map<QName, XSDatatype>
childrenXSDatatypes

Cache of XSDatatype instances per child Element QName

private QName
Inherited from org.dom4j.DocumentFactory:
cache

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Attribute
public Element
public XSDatatype

Returns:

the XSDatatype associated with the given Attribute QName
getAttributeXSDatatype
(QName
DOCUMENT ME!
attributeQName
)

DOCUMENT ME!

public XSDatatype

Returns:

the XSDatatype associated with the given child Element QName
getChildElementXSDatatype
(QName
DOCUMENT ME!
qname
)

DOCUMENT ME!

public QName

Returns:

the QName this element factory is associated with
getQName
()

DOCUMENT ME!

public void
setAttributeXSDatatype(QName
DOCUMENT ME!
attributeQName
,
XSDatatype
DOCUMENT ME!
type
)

Registers the given XSDatatype for the given <attribute> QNames

public void
Inherited from org.dom4j.DocumentFactory:
createAttributecreateCDATAcreateCommentcreateDocTypecreateDocumentcreateDocumentcreateDocumentcreateElementcreateElementcreateEntitycreateNamespacecreatePatterncreateProcessingInstructioncreateProcessingInstructioncreateQNamecreateQNamecreateQNamecreateQNamecreateQNameCachecreateSingletoncreateTextcreateXPathcreateXPathcreateXPathFiltercreateXPathFiltergetInstancegetQNamesgetXPathNamespaceURIsinitinternsetXPathNamespaceURIs

Field Detail

attributeXSDatatypesback to summary
private Map<QName, XSDatatype> attributeXSDatatypes

Cache of XSDatatype instances per Attribute QName

childrenXSDatatypesback to summary
private Map<QName, XSDatatype> childrenXSDatatypes

Cache of XSDatatype instances per child Element QName

elementQNameback to summary
private QName elementQName

Constructor Detail

DatatypeElementFactoryback to summary
public DatatypeElementFactory(QName elementQName)

Method Detail

createAttributeback to summary
public Attribute createAttribute(Element owner, QName qname, String value)

Overrides org.dom4j.DocumentFactory.createAttribute.

createElementback to summary
public Element createElement(QName qname)

Overrides org.dom4j.DocumentFactory.createElement.

getAttributeXSDatatypeback to summary
public XSDatatype getAttributeXSDatatype(QName attributeQName)

DOCUMENT ME!

Parameters
attributeQName:QName

DOCUMENT ME!

Returns:XSDatatype

the XSDatatype associated with the given Attribute QName

getChildElementXSDatatypeback to summary
public XSDatatype getChildElementXSDatatype(QName qname)

DOCUMENT ME!

Parameters
qname:QName

DOCUMENT ME!

Returns:XSDatatype

the XSDatatype associated with the given child Element QName

getQNameback to summary
public QName getQName()

DOCUMENT ME!

Returns:QName

the QName this element factory is associated with

setAttributeXSDatatypeback to summary
public void setAttributeXSDatatype(QName attributeQName, XSDatatype type)

Registers the given XSDatatype for the given <attribute> QNames

Parameters
attributeQName:QName

DOCUMENT ME!

type:XSDatatype

DOCUMENT ME!

setChildElementXSDatatypeback to summary
public void setChildElementXSDatatype(QName qname, XSDatatype dataType)