Class DefaultIDOMFactory

  • All Implemented Interfaces:
    IDOMFactory

    public class DefaultIDOMFactory
    extends java.lang.Object
    implements IDOMFactory
    The default iDOM factory.
    Author:
    tomyeh
    • Constructor Detail

      • DefaultIDOMFactory

        public DefaultIDOMFactory()
        Constructor.
    • Method Detail

      • newAttribute

        public Attribute newAttribute​(java.lang.String lname,
                                      java.lang.String value)
        Description copied from interface: IDOMFactory
        Creates an Attribute without namespace.
        Specified by:
        newAttribute in interface IDOMFactory
      • newCData

        public CData newCData​(java.lang.String text)
        Description copied from interface: IDOMFactory
        Creates a CData.
        Specified by:
        newCData in interface IDOMFactory
      • newDocType

        public DocType newDocType​(java.lang.String elementName,
                                  java.lang.String publicId,
                                  java.lang.String systemId)
        Description copied from interface: IDOMFactory
        Creates a DocType.
        Specified by:
        newDocType in interface IDOMFactory
        Parameters:
        elementName - the root element's name
        publicId - the public Id; null for empty
        systemId - the system Id; null for empty
      • newElement

        public Element newElement​(java.lang.String lname)
        Description copied from interface: IDOMFactory
        Creates an Element without namespace.
        Specified by:
        newElement in interface IDOMFactory
      • newEntityRef

        public EntityReference newEntityRef​(java.lang.String name)
        Description copied from interface: IDOMFactory
        Creates an EntityReference.
        Specified by:
        newEntityRef in interface IDOMFactory
        Parameters:
        name - the entity reference's name
      • newText

        public Text newText​(java.lang.String text)
        Description copied from interface: IDOMFactory
        Creates a Text.
        Specified by:
        newText in interface IDOMFactory