Package ro.sync.ecss.extensions.api
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 Summary
ConstructorsConstructorDescriptionAuthorDocumentType
(String name, String systemID, String publicID, String doctypeContent) Constructor. -
Method Summary
-
Constructor Details
-
AuthorDocumentType
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
- Returns:
- The name of DTD; i.e., the name immediately following the
DOCTYPE
keyword.
-
getPublicId
- Returns:
- The public identifier of the external subset.
-
getSystemId
- Returns:
- The system identifier of the external subset. This may be an absolute URI or not.
-
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
-
hashCode
public int hashCode() -
toString
-
serializeDoctype
Serialize the doctype- Returns:
- The serialized doctype
-
clone
Clones this doctype.
-