Class DatatypeElementFactory

java.lang.Object
org.dom4j.DocumentFactory
org.dom4j.datatype.DatatypeElementFactory
All Implemented Interfaces:
Serializable

public class DatatypeElementFactory extends DocumentFactory

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

Version:
$Revision: 1.9 $
See Also:
  • Field Details

    • elementQName

      private QName elementQName
    • attributeXSDatatypes

      private Map<QName,com.sun.msv.datatype.xsd.XSDatatype> attributeXSDatatypes
      Cache of XSDatatype instances per Attribute QName
    • childrenXSDatatypes

      private Map<QName,com.sun.msv.datatype.xsd.XSDatatype> childrenXSDatatypes
      Cache of XSDatatype instances per child Element QName
  • Constructor Details

    • DatatypeElementFactory

      public DatatypeElementFactory(QName elementQName)
  • Method Details

    • 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 given XSDatatype 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 class DocumentFactory
    • createAttribute

      public Attribute createAttribute(Element owner, QName qname, String value)
      Overrides:
      createAttribute in class DocumentFactory