|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.xml.parser.DTD
This class contains all the Document Type Definition (DTD) information for an XML document.
Constructor Summary | |
DTD()
Creates a new empty DTD. |
Method Summary | |
void |
addLoadedNameSpace(Atom url)
add a loaded name space name to the list |
void |
addNameSpace(Atom as,
Atom href)
add a |
void |
clear()
Resets the DTD to its initial state. |
Enumeration |
elementDeclarations()
Retrieves an object for enumerating the element declarations. |
Enumeration |
entityDeclarations()
Return an enumeration for enumerating the entities The enumeration returns entity objects. |
ElementDecl |
findElementDecl(Name name)
Finds an element declaration for the given tag name. |
Entity |
findEntity(Name n)
|
Atom |
findLoadedNameSpace(Atom url)
keep a list of all name spaces loaded so they are loaded twice if two name spaces happen to refer to the same DTD file |
Atom |
findLongNameSpace(Atom as)
|
Notation |
findNotation(Name name)
Retrieves the named XML notation in the DTD. |
Atom |
findShortNameSpace(Atom href)
get the short name of a specified name space |
Name |
getDocType()
Retrieves the name specified in the DOCTYPE tag. |
Element |
getSchema()
Convert everything stored in the DTD to schema. |
static boolean |
isReservedNameSpace(Atom n)
|
Enumeration |
notationDeclarations()
Return an enumeration for enumerating the notations The enumeration returns notation objects. |
void |
save(XMLOutputStream o)
Saves the DTD information to the given XML output stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DTD()
Method Detail |
public final Entity findEntity(Name n)
public final ElementDecl findElementDecl(Name name)
name
- The tag name.public final Enumeration elementDeclarations()
Enumeration
object that returns
ElementDecl
objects when enumerated.public final Enumeration entityDeclarations()
public final Enumeration notationDeclarations()
public final Notation findNotation(Name name)
name
- The name of the notation.Notation
object; returns null if it is not
found.public final void addNameSpace(Atom as, Atom href)
public final Atom findShortNameSpace(Atom href)
public final Atom findLongNameSpace(Atom as)
public static boolean isReservedNameSpace(Atom n)
public final Atom findLoadedNameSpace(Atom url)
public final void addLoadedNameSpace(Atom url)
public final Element getSchema()
public final void save(XMLOutputStream o) throws IOException
o
- The output stream to write to.public final void clear()
public final Name getDocType()
DOCTYPE
tag.
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |