|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tinyjee.maven.dim.utils.AbstractPositioningDocumentBuilder
public abstract class AbstractPositioningDocumentBuilder
Base class to Document builders that add element location information into the generated element nodes.
| Field Summary | |
|---|---|
static String |
KEY_COLUMN_NUMBER
Is a user-data key (for Node.getUserData(String)) that may be used to return the column number of an element node. |
static String |
KEY_LINE_NUMBER
Is a user-data key (for Node.getUserData(String)) that may be used to return the line number of an element node. |
| Constructor Summary | |
|---|---|
AbstractPositioningDocumentBuilder()
|
|
| Method Summary | |
|---|---|
static int |
getColumnNumber(Node node)
Returns the column number of the specified node if known, -1 otherwise. |
static int |
getLineNumber(Node node)
Returns the line number of the specified node if known, -1 otherwise. |
abstract Document |
parse(URL systemId)
Parses the given URL to a Document. |
abstract Document |
parse(URL systemId,
Reader reader)
Parses the given URL to a Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_LINE_NUMBER
Node.getUserData(String)) that may be used to return the line number of an element node.
public static final String KEY_COLUMN_NUMBER
Node.getUserData(String)) that may be used to return the column number of an element node.
| Constructor Detail |
|---|
public AbstractPositioningDocumentBuilder()
| Method Detail |
|---|
public static int getLineNumber(Node node)
node - a node that was created using this builder.
public static int getColumnNumber(Node node)
node - a node that was created using this builder.
public abstract Document parse(URL systemId)
throws Exception
Document.
systemId - the URL of the document to parse.
Exception - In case of parsing failed.
public abstract Document parse(URL systemId,
Reader reader)
throws Exception
Document.
systemId - the URL of the document to parse.reader - a reader containing the content to parse.
Exception - In case of parsing failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||