Top Description Fields Constructors Methods
org.jdom2.located

public Class LocatedDocType

extends DocType
implements Located
Class Inheritance
All Implemented Interfaces
org.jdom2.located.Located
Imports
org.jdom2.DocType, .IllegalDataException, .IllegalNameException

An XML DOCTYPE declaration. Method allow the user to get and set the root element name, public id, and system id.
Author
Rolf Lear

Field Summary

Modifier and TypeField and Description
private int
private int
private static final long
Inherited from org.jdom2.DocType:
elementNameinternalSubsetpublicIDsystemID

Constructor Summary

AccessConstructor and Description
public
LocatedDocType(String
String name of element being constrained.
elementName
,
String
String public ID of referenced DTD
publicID
,
String
String system ID of referenced DTD
systemID
)

This will create the DocType with the specified element name and a reference to an external DTD.

public
LocatedDocType(String
String name of element being constrained.
elementName
,
String
String system ID of referenced DTD
systemID
)

This will create the DocType with the specified element name and reference to an external DTD.

public
LocatedDocType(String
String name of element being constrained.
elementName
)

This will create the DocType with the specified element name

Method Summary

Modifier and TypeMethod and Description
public int
getColumn()

Implements org.jdom2.located.Located.getColumn.

Get the column (character on the line).
public int
getLine()

Implements org.jdom2.located.Located.getLine.

Get the line number
public void
setColumn(int
The column
col
)

Implements org.jdom2.located.Located.setColumn.

Set the column (character on the line).
public void
setLine(int
the line.
line
)

Implements org.jdom2.located.Located.setLine.

Set the line number
Inherited from org.jdom2.DocType:
clonedetachgetElementNamegetInternalSubsetgetParentgetPublicIDgetSystemIDgetValuesetElementNamesetInternalSubsetsetParentsetPublicIDsetSystemIDtoString

Field Detail

colback to summary
private int col
lineback to summary
private int line
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.jdom2.DocType.serialVersionUID.

JDOM2 Serialization. In this case, DocType is simple.

Constructor Detail

LocatedDocTypeback to summary
public LocatedDocType(String elementName, String publicID, String systemID)

This will create the DocType with the specified element name and a reference to an external DTD.

Parameters
elementName:String

String name of element being constrained.

publicID:String

String public ID of referenced DTD

systemID:String

String system ID of referenced DTD

Exceptions
IllegalDataException:
if the given system ID is not a legal system literal or the public ID is not a legal public ID.
IllegalNameException:
if the given root element name is not a legal XML element name.
LocatedDocTypeback to summary
public LocatedDocType(String elementName, String systemID)

This will create the DocType with the specified element name and reference to an external DTD.

Parameters
elementName:String

String name of element being constrained.

systemID:String

String system ID of referenced DTD

Exceptions
IllegalDataException:
if the given system ID is not a legal system literal.
IllegalNameException:
if the given root element name is not a legal XML element name.
LocatedDocTypeback to summary
public LocatedDocType(String elementName)

This will create the DocType with the specified element name

Parameters
elementName:String

String name of element being constrained.

Exceptions
IllegalNameException:
if the given root element name is not a legal XML element name.

Method Detail

getColumnback to summary
public int getColumn()

Implements org.jdom2.located.Located.getColumn.

Doc from org.jdom2.located.Located.getColumn.

Get the column (character on the line).

Returns:int

the column

Annotations
@Override
getLineback to summary
public int getLine()

Implements org.jdom2.located.Located.getLine.

Doc from org.jdom2.located.Located.getLine.

Get the line number

Returns:int

the line number

Annotations
@Override
setColumnback to summary
public void setColumn(int col)

Implements org.jdom2.located.Located.setColumn.

Doc from org.jdom2.located.Located.setColumn.

Set the column (character on the line).

Parameters
col:int

The column

Annotations
@Override
setLineback to summary
public void setLine(int line)

Implements org.jdom2.located.Located.setLine.

Doc from org.jdom2.located.Located.setLine.

Set the line number

Parameters
line:int

the line.

Annotations
@Override