|
JHotDraw 7.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.xml.JavaxDOMInput
public class JavaxDOMInput
DOMInput.
| Field Summary | |
|---|---|
protected static javax.xml.parsers.DocumentBuilder |
documentBuilder
|
| Constructor Summary | |
|---|---|
JavaxDOMInput(DOMFactory factory,
java.io.InputStream in)
|
|
JavaxDOMInput(DOMFactory factory,
java.io.Reader in)
|
|
| Method Summary | |
|---|---|
void |
closeElement()
Closes the current element of the DOM Document. |
boolean |
getAttribute(java.lang.String name,
boolean defaultValue)
Gets an attribute of the current element of the DOM Document. |
double |
getAttribute(java.lang.String name,
double defaultValue)
Gets an attribute of the current element of the DOM Document. |
int |
getAttribute(java.lang.String name,
int defaultValue)
Gets an attribute of the current element of the DOM Document. |
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
Gets an attribute of the current element of the DOM Document. |
protected static javax.xml.parsers.DocumentBuilder |
getBuilder()
Lazily create the document builder and keep a reference to it for performance improvement. |
int |
getElementCount()
Returns the number of child elements of the current element. |
int |
getElementCount(java.lang.String tagName)
Returns the number of child elements with the specified tag name of the current element. |
java.util.List<java.lang.String> |
getInheritedAttribute(java.lang.String name)
Gets an attribute of the current element of the DOM Document and of all parent DOM elements. |
java.lang.String |
getTagName()
Returns the tag name of the current element. |
java.lang.String |
getText()
Gets the text of the current element of the DOM Document. |
java.lang.String |
getText(java.lang.String defaultValue)
Gets the text of the current element of the DOM Document. |
void |
openElement(int index)
Opens the element with the specified index and makes it the current node. |
void |
openElement(java.lang.String tagName)
Opens the last element with the specified name and makes it the current node. |
void |
openElement(java.lang.String tagName,
int index)
Opens the element with the specified name and index and makes it the current node. |
java.lang.Object |
readObject()
Reads an object from the current element. |
java.lang.Object |
readObject(int index)
Reads an object from the current element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static javax.xml.parsers.DocumentBuilder documentBuilder
| Constructor Detail |
|---|
public JavaxDOMInput(DOMFactory factory,
java.io.InputStream in)
throws java.io.IOException
java.io.IOException
public JavaxDOMInput(DOMFactory factory,
java.io.Reader in)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected static javax.xml.parsers.DocumentBuilder getBuilder()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getTagName()
getTagName in interface DOMInput
public java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue)
getAttribute in interface DOMInputpublic java.lang.String getText()
getText in interface DOMInputpublic java.lang.String getText(java.lang.String defaultValue)
getText in interface DOMInputpublic java.util.List<java.lang.String> getInheritedAttribute(java.lang.String name)
getInheritedAttribute in interface DOMInput
public int getAttribute(java.lang.String name,
int defaultValue)
getAttribute in interface DOMInput
public double getAttribute(java.lang.String name,
double defaultValue)
getAttribute in interface DOMInput
public boolean getAttribute(java.lang.String name,
boolean defaultValue)
getAttribute in interface DOMInputpublic int getElementCount()
getElementCount in interface DOMInputpublic int getElementCount(java.lang.String tagName)
getElementCount in interface DOMInputpublic void openElement(int index)
openElement in interface DOMInputpublic void openElement(java.lang.String tagName)
openElement in interface DOMInput
public void openElement(java.lang.String tagName,
int index)
openElement in interface DOMInputpublic void closeElement()
closeElement in interface DOMInputjava.lang.IllegalArgumentException - if the provided tagName does
not match the tag name of the element.
public java.lang.Object readObject()
throws java.io.IOException
readObject in interface DOMInputjava.io.IOException
public java.lang.Object readObject(int index)
throws java.io.IOException
readObject in interface DOMInputjava.io.IOException
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||