|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.security.utils.ElementProxy
This is the base class to all Objects which have a direct 1:1 mapping to an Element in a particular namespace.
Field Summary | |
protected java.lang.String |
_baseURI
Field _baseURI |
protected org.w3c.dom.Element |
_constructionElement
Field _constructionElement |
protected org.w3c.dom.Document |
_doc
Field _doc |
Constructor Summary | |
ElementProxy()
Constructor ElementProxy |
|
ElementProxy(org.w3c.dom.Document doc)
Constructor ElementProxy |
|
ElementProxy(org.w3c.dom.Element element,
java.lang.String BaseURI)
Constructor ElementProxy |
Method Summary | |
void |
addBase64Element(byte[] bytes,
java.lang.String localname)
Method addBase64Element |
void |
addBase64Text(byte[] bytes)
Method addBase64Text |
void |
addBigIntegerElement(java.math.BigInteger bi,
java.lang.String localname)
Method setVal |
void |
addText(java.lang.String text)
Method addText |
void |
addTextElement(java.lang.String text,
java.lang.String localname)
Method addTextElement |
static org.w3c.dom.Element |
createElementForFamily(org.w3c.dom.Document doc,
java.lang.String namespace,
java.lang.String localName)
This method creates an Element in a given namespace with a given localname. |
protected org.w3c.dom.Element |
createElementForFamilyLocal(org.w3c.dom.Document doc,
java.lang.String namespace,
java.lang.String localName)
|
abstract java.lang.String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class. |
abstract java.lang.String |
getBaseNamespace()
Returns the namespace of the Elements of the sub-class. |
java.lang.String |
getBaseURI()
Method getBaseURI |
java.math.BigInteger |
getBigIntegerFromChildElement(java.lang.String localname,
java.lang.String namespace)
Method getVal |
byte[] |
getBytesFromChildElement(java.lang.String localname,
java.lang.String namespace)
Deprecated. |
byte[] |
getBytesFromTextChild()
Method getBytesFromTextChild |
static java.lang.String |
getDefaultPrefix(java.lang.String namespace)
Method getDefaultPrefix |
static java.lang.String |
getDefaultPrefixBindings(java.lang.String namespace)
|
org.w3c.dom.Document |
getDocument()
Method getDocument |
org.w3c.dom.Element |
getElement()
Returns the Element which was constructed by the Object. |
org.w3c.dom.NodeList |
getElementPlusReturns()
Returns the Element plus a leading and a trailing CarriageReturn Text node. |
java.lang.String |
getTextFromChildElement(java.lang.String localname,
java.lang.String namespace)
Method getTextFromChildElement |
java.lang.String |
getTextFromTextChild()
Method getTextFromTextChild |
int |
length(java.lang.String namespace,
java.lang.String localname)
Method length |
static void |
setDefaultPrefix(java.lang.String namespace,
java.lang.String prefix)
Method setDefaultPrefix |
void |
setElement(org.w3c.dom.Element element,
java.lang.String BaseURI)
Method setElement |
void |
setXPathNamespaceContext(java.lang.String prefix,
java.lang.String uri)
Adds an xmlns: definition to the Element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.w3c.dom.Element _constructionElement
protected java.lang.String _baseURI
protected org.w3c.dom.Document _doc
Constructor Detail |
public ElementProxy()
public ElementProxy(org.w3c.dom.Document doc)
doc
- public ElementProxy(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
element
- BaseURI
-
XMLSecurityException
Method Detail |
public abstract java.lang.String getBaseNamespace()
public abstract java.lang.String getBaseLocalName()
protected org.w3c.dom.Element createElementForFamilyLocal(org.w3c.dom.Document doc, java.lang.String namespace, java.lang.String localName)
public static org.w3c.dom.Element createElementForFamily(org.w3c.dom.Document doc, java.lang.String namespace, java.lang.String localName)
getDefaultPrefix(java.lang.String)
method to decide whether
a particular prefix is bound to that namespace.
doc
- namespace
- localName
-
public void setElement(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
element
- BaseURI
-
XMLSecurityException
public final org.w3c.dom.Element getElement()
public final org.w3c.dom.NodeList getElementPlusReturns()
public org.w3c.dom.Document getDocument()
public java.lang.String getBaseURI()
public void addBigIntegerElement(java.math.BigInteger bi, java.lang.String localname)
bi
- localname
- public void addBase64Element(byte[] bytes, java.lang.String localname)
bytes
- localname
- public void addTextElement(java.lang.String text, java.lang.String localname)
text
- localname
- public void addBase64Text(byte[] bytes)
bytes
- public void addText(java.lang.String text)
text
- public java.math.BigInteger getBigIntegerFromChildElement(java.lang.String localname, java.lang.String namespace) throws Base64DecodingException
localname
- namespace
-
Base64DecodingException
public byte[] getBytesFromChildElement(java.lang.String localname, java.lang.String namespace) throws XMLSecurityException
localname
- namespace
-
XMLSecurityException
public java.lang.String getTextFromChildElement(java.lang.String localname, java.lang.String namespace)
localname
- namespace
-
public byte[] getBytesFromTextChild() throws XMLSecurityException
XMLSecurityException
public java.lang.String getTextFromTextChild()
public int length(java.lang.String namespace, java.lang.String localname)
namespace
- localname
-
public void setXPathNamespaceContext(java.lang.String prefix, java.lang.String uri) throws XMLSecurityException
// set namespace with ds prefix xpathContainer.setXPathNamespaceContext("ds", "http://www.w3.org/2000/09/xmldsig#"); xpathContainer.setXPathNamespaceContext("xmlns:ds", "http://www.w3.org/2000/09/xmldsig#");
prefix
- uri
-
XMLSecurityException
public static void setDefaultPrefix(java.lang.String namespace, java.lang.String prefix) throws XMLSecurityException
namespace
- prefix
-
XMLSecurityException
public static java.lang.String getDefaultPrefix(java.lang.String namespace)
namespace
-
public static java.lang.String getDefaultPrefixBindings(java.lang.String namespace)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |