org.apache.xindice.xml
Class SymbolTable
java.lang.Object
|
+--org.apache.xindice.xml.SymbolTable
- All Implemented Interfaces:
- XMLSerializable
- Direct Known Subclasses:
- SymbolTableSymbols
- public class SymbolTable
- extends Object
- implements XMLSerializable
SymbolTable is a class that allows the Xindice Compression system to
resolve symbol IDs in compression/decompression passes.
- Version:
- $Revision: 527707 $, $Date: 2007-04-11 18:20:28 -0400 (Wed, 11 Apr 2007) $
Method Summary |
long |
getLastModified()
|
static String |
getLookupName(String qname,
String namespaceURI)
|
String |
getName(short symbol)
|
String |
getNamespaceURI(short symbol)
|
static String |
getNormalizedLocalName(String localName,
String namespaceURI)
|
static String |
getNormalizedQName(String qName,
String namespaceURI)
|
static short |
getNormalizedSymbol(SymbolTable symbols,
String lookup,
NamespaceMap nsMap,
boolean create)
|
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)
|
SymbolTable.SymbolInfo |
getSymbolInfo(String qname,
String namespaceURI)
|
boolean |
isDirty()
|
void |
setDirty(boolean dirty)
|
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 |
SymbolTable
public SymbolTable()
SymbolTable
public SymbolTable(org.w3c.dom.Element elem)
getLookupName
public static String getLookupName(String qname,
String namespaceURI)
getNormalizedSymbol
public static short getNormalizedSymbol(SymbolTable symbols,
String lookup,
NamespaceMap nsMap,
boolean create)
getNormalizedLocalName
public static String getNormalizedLocalName(String localName,
String namespaceURI)
getNormalizedQName
public static String getNormalizedQName(String qName,
String namespaceURI)
isDirty
public final boolean isDirty()
setDirty
public final void setDirty(boolean dirty)
getSymbolInfo
public final SymbolTable.SymbolInfo getSymbolInfo(String qname,
String namespaceURI)
getSymbol
public final short getSymbol(String qname,
String namespaceURI,
boolean create)
getSymbol
public final short getSymbol(String qname,
boolean create)
getSymbol
public final short getSymbol(String qname,
String namespaceURI)
getSymbol
public final short getSymbol(String qname)
getSymbolInfo
public final SymbolTable.SymbolInfo getSymbolInfo(short symbol)
getNamespaceURI
public final String getNamespaceURI(short symbol)
getName
public final String getName(short symbol)
getLastModified
public final long getLastModified()
streamToXML
public final org.w3c.dom.Element streamToXML(org.w3c.dom.Document doc)
throws org.w3c.dom.DOMException
- Description copied from interface:
XMLSerializable
- streamToXML streams a Java object to the DOM node.
Passed owner document is used to create nodes and should not
be modified.
- Specified by:
streamToXML
in interface XMLSerializable
- Following copied from interface:
org.apache.xindice.xml.XMLSerializable
- Parameters:
doc
- The Owner Document- Returns:
- A newly created Element
- Throws:
org.w3c.dom.DOMException
- If an error occurs
streamFromXML
public final void streamFromXML(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
- Description copied from interface:
XMLSerializable
- streamFromXML streams an object from the DOM node.
- Specified by:
streamFromXML
in interface XMLSerializable
- Following copied from interface:
org.apache.xindice.xml.XMLSerializable
- Parameters:
element
- The Input Element- Throws:
org.w3c.dom.DOMException
- If an error occurs
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.