Package org.marc4j.marcxml
Class DoctypeDecl
- java.lang.Object
-
- org.marc4j.marcxml.DoctypeDecl
-
public class DoctypeDecl extends Object
DoctypeDecl
defines behaviour for a document type declaration.- Author:
- Bas Peters
-
-
Constructor Summary
Constructors Constructor Description DoctypeDecl()
Default constructorDoctypeDecl(String name, String publicId, String systemId)
Creates a new DocType instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of the root element.String
getPublicId()
Returns the public identifier.String
getSystemId()
Returns the system identifier.void
setName(String name)
Sets the name of the root element.void
setPublicId(String publicId)
Sets the public identifier.void
setSystemId(String systemId)
Sets the system identifier.
-
-
-
Method Detail
-
setName
public void setName(String name)
Sets the name of the root element.
- Parameters:
name
- the name of the root element
-
setPublicId
public void setPublicId(String publicId)
Sets the public identifier.
- Parameters:
publicId
- the public identifier
-
setSystemId
public void setSystemId(String systemId)
Sets the system identifier.
- Parameters:
systemId
- the system identifier
-
getName
public String getName()
Returns the name of the root element.
- Returns:
String
- the name of the root element
-
getPublicId
public String getPublicId()
Returns the public identifier.
- Returns:
String
- the public identifier
-
-