Package gnu.kawa.xml
Class XmlNamespace
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- gnu.kawa.util.AbstractHashTable<gnu.mapping.SymbolRef,String,Symbol>
-
- gnu.mapping.Namespace
-
- gnu.kawa.xml.XmlNamespace
-
- All Implemented Interfaces:
HasNamedParts
,Externalizable
,Serializable
,Map<String,Symbol>
public class XmlNamespace extends Namespace implements Externalizable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static XmlNamespace
HTML
static NamespaceBinding
HTML_BINDINGS
static String
XHTML_NAMESPACE
-
Fields inherited from class gnu.mapping.Namespace
EmptyNamespace, nsTable, prefix, UNKNOWN_NAMESPACE
-
Fields inherited from class gnu.kawa.util.AbstractHashTable
DEFAULT_INITIAL_SIZE, mask, num_bindings, table
-
-
Constructor Summary
Constructors Constructor Description XmlNamespace()
Only for use when serializing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
get(String name)
static XmlNamespace
getInstance(String prefix, String uri)
boolean
isConstant(String key)
void
readExternal(ObjectInput in)
Object
readResolve()
static XmlNamespace
valueOf(String name, String prefix)
Emitted by compiler to handle literals.void
writeExternal(ObjectOutput out)
-
Methods inherited from class gnu.mapping.Namespace
add, allocEntries, create, create, get, getDefault, getDefaultSymbol, getEntryHashCode, getEntryNext, getName, getPrefix, getSymbol, isUnknownNamespace, lookup, lookup, lookupInternal, makeEntry, makeUnknownNamespace, remove, setEntryNext, setName, toString, valueOf, valueOf, valueOf, valueOfNoCreate
-
Methods inherited from class gnu.kawa.util.AbstractHashTable
clear, entrySet, get, getNode, getOrDefault, hash, hashToIndex, matches, matches, put, put, rehash, remove, size
-
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
XHTML_NAMESPACE
public static final String XHTML_NAMESPACE
- See Also:
- Constant Field Values
-
HTML
public static final XmlNamespace HTML
-
HTML_BINDINGS
public static final NamespaceBinding HTML_BINDINGS
-
-
Method Detail
-
getInstance
public static XmlNamespace getInstance(String prefix, String uri)
-
valueOf
public static XmlNamespace valueOf(String name, String prefix)
Emitted by compiler to handle literals.
-
get
public Object get(String name)
- Specified by:
get
in interfaceHasNamedParts
- Overrides:
get
in classNamespace
-
isConstant
public boolean isConstant(String key)
- Specified by:
isConstant
in interfaceHasNamedParts
- Overrides:
isConstant
in classNamespace
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classNamespace
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classNamespace
- Throws:
IOException
ClassNotFoundException
-
readResolve
public Object readResolve() throws ObjectStreamException
- Overrides:
readResolve
in classNamespace
- Throws:
ObjectStreamException
-
-