|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.TagManager
public class TagManager
Maps XML namespace/tag-name pairs to implementation classes.
Constructor Summary | |
---|---|
TagManager() Creates a new TagManager instance and sets the default mappings. |
|
TagManager(boolean defaultMappings) Creates a new TagManager instance. |
Method Summary | |
---|---|
java.lang.Class<? extends XMLElement> |
getClassForTag(java.lang.String ns, java.lang.String tag) Retrieves the implementation class for the given element tag name within the given namespace. |
java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> |
getTagHashMap(java.lang.String ns) Retrieves the HashMap mapping element tag names to implementation classes for the given namespace. |
static TagManager |
getTagManager() Retrieves the current system-wide TagManager , creating a new instance with default mappings if none has been set. |
java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> |
getTagMap(java.lang.String ns) Retrieves the Hashtable mapping element tag names to implementation classes for the given namespace. |
java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> |
mapNamespace(java.lang.String ns, java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> tagMap) Maps the given namespace to the given tag map. |
java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> |
mapNamespace(java.lang.String ns, java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> tagMap) Maps the given namespace to the given tag map. |
java.lang.Class |
mapTag(java.lang.String ns, java.lang.String tag, java.lang.Class c) Maps the given element tag name to the given implementation class for the given namespace. |
void |
mapXMLDSig() Maps the standard XML-DSIG elements to their corresponding implementation classes within the Phaos library for the standard XML-DSig namespace URI, for the system-wide TagManager . |
void |
mapXMLEnc() Maps the standard XML Encryption elements to their corresponding implementation classes within the Phaos library for the standard XML Encryption namespace URI, for the system-wide TagManager . |
static void |
setTagManager(TagManager tagMgr) Sets the system-wide TagManager . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagManager()
TagManager
instance and sets the default mappings.
mapXMLDSig()
, mapXMLEnc()
public TagManager(boolean defaultMappings)
TagManager
instance.
defaultMappings
- If true
the default mappings are set, if false
they are not set.mapXMLDSig()
, mapXMLEnc()
Method Detail |
---|
public static void setTagManager(TagManager tagMgr)
TagManager
.tagMgr
- A TagManager
instance.TagManager(boolean)
, TagManager(boolean)
, mapXMLDSig()
, mapXMLEnc()
public static TagManager getTagManager()
TagManager
, creating a new instance with default mappings if none has been set.TagManager
.public java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> mapNamespace(java.lang.String ns, java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> tagMap)
ns
- A namespace URI.tagMap
- A HashMap
mapping tag name strings to implementation Class
objects for the given namespace.null
if none was mapped.public java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> mapNamespace(java.lang.String ns, java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> tagMap)
ns
- A namespace URI.tagMap
- A HashMap
mapping tag name strings to implementation Class
objects for the given namespace.null
if none was mapped.public java.util.HashMap<java.lang.String,java.lang.Class<? extends XMLElement>> getTagHashMap(java.lang.String ns)
ns
- A namespace URI.HashMap
mapping tag name strings to implementation Class
objects for the given namespace, or null
if none exists.public java.util.Hashtable<java.lang.String,java.lang.Class<? extends XMLElement>> getTagMap(java.lang.String ns)
ns
- A namespace URI.Hashtable
mapping tag name strings to implementation Class
objects for the given namespace, or null
if none exists.public java.lang.Class mapTag(java.lang.String ns, java.lang.String tag, java.lang.Class c)
ns
- A namespace URI.tag
- A XML element tag name in the given namespace.c
- The previously mapped class for the specified element, or null
if none was mapped.public java.lang.Class<? extends XMLElement> getClassForTag(java.lang.String ns, java.lang.String tag)
ns
- A namespace URI. If this argument is null
, the first mapping for the given tag in any namespace will be returned.tag
- A XML element tag name in the given namespace.null
if none is mapped.public void mapXMLDSig()
TagManager
. Any previously defined mappings for this namespace are removed.XMLURI.ns_xmldsig
, getTagManager()
public void mapXMLEnc()
TagManager
. Any previously defined mappings for this namespace are removed.XMLURI.ns_xmlenc
, getTagManager()
|
Oracle Security Developer Tools XML Security Java API Reference 11g (11.1.1) E10680-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |