Class AuthorDocumentType

java.lang.Object
ro.sync.ecss.extensions.api.AuthorDocumentType
All Implemented Interfaces:
Cloneable

@API(type=EXTENDABLE, src=PUBLIC) public class AuthorDocumentType extends Object implements Cloneable
Author structure representing DOCTYPE information as present in the Author document.
  • Constructor Details

    • AuthorDocumentType

      public AuthorDocumentType(String name, String systemID, String publicID, String doctypeContent)
      Constructor.
      Parameters:
      name - The DOCTYPE name.
      systemID - The systemID.
      publicID - Public id.
      doctypeContent - The DOCTYPE content Example for creating a Docbook AuthorDocumentType:
       AuthorDocumentType doctype = new AuthorDocumentType(
           "article", 
           "http://www.docbook.org/xml/4.4/docbookx.dtd", 
           "-//OASIS//DTD DocBook XML V4.4//EN",
           "<!DOCTYPE article PUBLIC \"-//OASIS//DTD DocBook XML V4.4//EN\"\n" + 
           "             \"http://www.docbook.org/xml/4.4/docbookx.dtd\"[\n" + 
           " <!ENTITY ent 'this is an entity'>\n" + 
           "]>");
       
  • Method Details

    • getName

      public String getName()
      Returns:
      The name of DTD; i.e., the name immediately following the DOCTYPE keyword.
    • getPublicId

      public String getPublicId()
      Returns:
      The public identifier of the external subset.
    • getSystemId

      public String getSystemId()
      Returns:
      The system identifier of the external subset. This may be an absolute URI or not.
    • getContent

      public String getContent()
      Returns:
      The whole content of the DOCTYPE for serialization Example:
       <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
                            "http://www.docbook.org/xml/4.4/docbookx.dtd"[
         <!ENTITY ent 'this is an entity'>
       ]>
       
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • serializeDoctype

      public String serializeDoctype()
      Serialize the doctype
      Returns:
      The serialized doctype
    • clone

      public AuthorDocumentType clone()
      Clones this doctype.
      Overrides:
      clone in class Object
      See Also: