|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.content.NodeProperty.NamespaceCache
The usage of this class avoids the creation of mutliple Namespace objects
with the same URI but different prefix. Just use it as a replacement
for the org.jdom.Namespace
.
It also predefines Namespace objects for the DAV:
and
the http://jakarta.apache.org/slide/
namespace
(with an appropriate prefix).
Field Summary | |
static org.jdom.Namespace |
DEFAULT_NAMESPACE
Namespace with DEFAULT_PREFIX and
DEFAULT_URI . |
static java.lang.String |
DEFAULT_PREFIX
String constant for D . |
static java.lang.String |
DEFAULT_URI
String constant for DAV: . |
protected static java.util.Map |
namespaceMap
Maps the namespace' URI to the Namespace object. |
static org.jdom.Namespace |
SLIDE_NAMESPACE
Namespace with SLIDE_PREFIX and
SLIDE_URI . |
static java.lang.String |
SLIDE_PREFIX
String constant for S . |
static java.lang.String |
SLIDE_URI
String constant for http://jakarta.apache.org/slide/ . |
Constructor Summary | |
NodeProperty.NamespaceCache()
|
Method Summary | |
static org.jdom.Namespace |
getNamespace(java.lang.String uri)
Returns the Namespace for the given uri . |
static org.jdom.Namespace |
getNamespace(java.lang.String prefix,
java.lang.String uri)
Returns the Namespace for the given prefix and
uri . |
protected static java.util.Map |
getNamespaceMap()
Returns the namespaceMap . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SLIDE_PREFIX
S
.
public static final java.lang.String SLIDE_URI
http://jakarta.apache.org/slide/
.
public static final org.jdom.Namespace SLIDE_NAMESPACE
SLIDE_PREFIX
and
SLIDE_URI
.
public static final java.lang.String DEFAULT_PREFIX
D
.
public static final java.lang.String DEFAULT_URI
DAV:
.
public static final org.jdom.Namespace DEFAULT_NAMESPACE
DEFAULT_PREFIX
and
DEFAULT_URI
.
protected static java.util.Map namespaceMap
Constructor Detail |
public NodeProperty.NamespaceCache()
Method Detail |
public static org.jdom.Namespace getNamespace(java.lang.String uri)
uri
.
If there is already an entry in the cache for this URI,
this Namespace will be returned.
Otherwise a new Namespace with the prefix ""
(default namespace) will be created and put into the cache.
uri
- the URI for which to return the Namespace.
public static org.jdom.Namespace getNamespace(java.lang.String prefix, java.lang.String uri)
prefix
and
uri
.
If there is already an entry in the cache for this URI,
this Namespace will be returned.
Otherwise a new Namespace with the given prefix
and uri
will be created and put into the cache.
prefix
- the prefix for which to return the Namespace.uri
- the URI for which to return the Namespace.
protected static java.util.Map getNamespaceMap()
namespaceMap
.
namespaceMap
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |