|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.xml.SymbolTable
SymbolTable is a class that allows the Xindice Compression system to resolve symbol IDs in compression/decompression passes.
Nested Class Summary | |
static class |
SymbolTable.SymbolInfo
|
Constructor Summary | |
SymbolTable()
|
|
SymbolTable(org.w3c.dom.Element symbols)
|
|
SymbolTable(org.w3c.dom.Element symbols,
boolean readOnly)
|
Method Summary | |
long |
getLastModified()
|
String |
getName(short symbol)
|
String |
getNamespaceURI(short symbol)
|
short |
getNormalizedSymbol(String lookup,
NamespaceMap nsMap,
boolean create)
Lookup normalized symbol by lookup string and (optional) namespace map. |
short |
getNormalizedSymbol(String localName,
String namespaceURI)
|
short |
getNormalizedSymbol(String localName,
String namespaceURI,
boolean create)
Lookup normalized symbol by element (or attribute) local name and namespace URI. |
short |
getSymbol(String qname)
|
short |
getSymbol(String qname,
boolean create)
|
short |
getSymbol(String qname,
String namespaceURI)
|
short |
getSymbol(String qname,
String namespaceURI,
boolean create)
|
SymbolTable.SymbolInfo |
getSymbolInfo(short symbol)
|
boolean |
isDirty()
|
boolean |
isReadOnly()
|
void |
resetDirty()
Reset dirty flag to false. |
void |
streamFromXML(org.w3c.dom.Element element)
streamFromXML streams an object from the DOM node. |
org.w3c.dom.Element |
streamToXML(org.w3c.dom.Document doc)
streamToXML streams a Java object to the DOM node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SymbolTable()
public SymbolTable(org.w3c.dom.Element symbols)
public SymbolTable(org.w3c.dom.Element symbols, boolean readOnly)
Method Detail |
public final boolean isDirty()
public final void resetDirty()
public final long getLastModified()
public final boolean isReadOnly()
public final SymbolTable.SymbolInfo getSymbolInfo(short symbol)
public final String getNamespaceURI(short symbol)
public final String getName(short symbol)
public final short getSymbol(String qname)
public final short getSymbol(String qname, String namespaceURI)
public final short getSymbol(String qname, boolean create) throws ReadOnlyException
ReadOnlyException
public final short getSymbol(String qname, String namespaceURI, boolean create) throws ReadOnlyException
ReadOnlyException
public final short getNormalizedSymbol(String localName, String namespaceURI)
public final short getNormalizedSymbol(String localName, String namespaceURI, boolean create) throws ReadOnlyException
localName
- element (attribute) local namenamespaceURI
- element (attribute) namespace URIcreate
- when true, creates symbol if it is missing
ReadOnlyException
- if 'create' option specified and the symbol is missingpublic final short getNormalizedSymbol(String lookup, NamespaceMap nsMap, boolean create) throws ReadOnlyException
lookup
- lookup stringnsMap
- namespace mapcreate
- when true, creates symbol if it is missing
ReadOnlyException
- if 'create' option specified and the symbol is missingpublic final org.w3c.dom.Element streamToXML(org.w3c.dom.Document doc) throws org.w3c.dom.DOMException
XMLSerializable
streamToXML
in interface XMLSerializable
doc
- The Owner Document
org.w3c.dom.DOMException
- If an error occurspublic final void streamFromXML(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
XMLSerializable
streamFromXML
in interface XMLSerializable
element
- The Input Element
org.w3c.dom.DOMException
- If an error occurs
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |