public abstract class SMNamespace extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
_uri
URI of the actual namespace this class encapsulates
|
Modifier | Constructor and Description |
---|---|
protected |
SMNamespace(String uri) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
_bindAs(String prefix)
Method called to indicate that the namespace is now bound to a
specific prefix within current output context.
|
protected abstract void |
_bindPermanentlyAs(String prefix)
Method used to permanently bind this (local) namespace to a prefix.
|
protected abstract void |
_unbind()
Method called to indicate that the namespace is no longer bound
to its current prefix within the current output context.
|
abstract String |
getBoundPrefix() |
abstract String |
getLastBoundPrefix() |
abstract String |
getPreferredPrefix() |
String |
getURI() |
boolean |
isBoundToPrefix() |
protected abstract boolean |
isValidIn(SMOutputContext ctxt)
Method used to verify that the namespace is actually valid within
the specified output context.
|
abstract boolean |
prefersDefaultNs() |
abstract void |
prefersDefaultNs(boolean state) |
abstract void |
setPreferredPrefix(String prefPrefix)
Method that can be called to associate a "preferred" prefix; prefix
that this namespace should be bound to instead of some automatically
generated one (unless that prefix is already bound to another URI).
|
protected final String _uri
protected SMNamespace(String uri)
public final String getURI()
public abstract String getPreferredPrefix()
public abstract String getBoundPrefix()
public abstract String getLastBoundPrefix()
public abstract boolean prefersDefaultNs()
public final boolean isBoundToPrefix()
public abstract void prefersDefaultNs(boolean state)
public abstract void setPreferredPrefix(String prefPrefix)
protected abstract boolean isValidIn(SMOutputContext ctxt)
protected abstract void _bindAs(String prefix)
protected abstract void _bindPermanentlyAs(String prefix)
protected abstract void _unbind()
Copyright © 2013 FasterXML. All Rights Reserved.