|
Oracle Fusion Middleware SAML 2.0 Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10676-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.saml2.core.Attribute
public abstract class Attribute
Represents an attribute by name and optionally its value(s).
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
Attribute(org.w3c.dom.Document owner) Creates a new Attribute instance. |
|
Attribute(org.w3c.dom.Element element) Creates a new Attribute instance from the given Element node. |
|
Attribute(org.w3c.dom.Element element, java.lang.String systemId) Creates a new Attribute instance from the given Element node. |
Method Summary | |
---|---|
protected org.w3c.dom.Element |
addAttributeValue(org.w3c.dom.Node[] content, oracle.security.xmlsec.util.QName type) Adds an AttributeValue element to this Attribute . |
protected org.w3c.dom.Element |
addAttributeValue(org.w3c.dom.Node content, oracle.security.xmlsec.util.QName type) Adds an AttributeValue element to this Attribute . |
void |
addAttributeValue(java.lang.String value) Adds a new AttributeValue element to this Attribute . |
void |
addAttributeValues(java.lang.String[] values) Adds a new AttributeValue element for each string in the given array. |
abstract java.lang.String |
getAttributeProfileID() Returns the Profile Identification URI. |
java.util.List |
getAttributeValues() Returns the list of this Attribute 's AttributeValue s. |
protected java.lang.String[] |
getAttributeValuesAsStrings(oracle.security.xmlsec.util.QName type) Returns the contents of this Attribute 's AttributeValue s that have the given xsi:type as strings. |
protected java.lang.String[] |
getAttributeValuesAsStrings(oracle.security.xmlsec.util.QName type, boolean includeNull) Returns the contents of this Attribute 's AttributeValue s that have the given xsi:type s as strings. |
java.lang.String[] |
getAttributeValueStrings() Returns the contents of this Attribute 's AttributeValue s that have xsi:type="xs:string" . |
java.lang.String |
getFriendlyName() Get the friendly name of the attribute. |
java.lang.String |
getName() |
java.lang.String |
getNameFormat() Get the attribute name format. |
protected static oracle.security.xmlsec.util.QName |
getXsiType(org.w3c.dom.Element element) Returns the XML Schema xsi:type attribute to identify the attribute value type. |
void |
setFriendlyName(java.lang.String fname) Set the friendly name of the attribute. |
void |
setName(java.lang.String name) Set the attribute name. |
protected void |
setNameFormat(java.lang.String formatURI) Set the attribute name format. |
protected static void |
setXsiType(org.w3c.dom.Element element, oracle.security.xmlsec.util.QName type) Set the XML Schema xsi:type attribute to identify the attribute value type. |
Methods inherited from class oracle.security.xmlsec.util.XMLElement |
---|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attribute(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
Attribute
instance from the given Element node.
element
- An Attribute element.org.w3c.dom.DOMException
public Attribute(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
Attribute
instance from the given Element node.
element
- An Attribute element.systemId
- The URI string system ID for the Attribute
.org.w3c.dom.DOMException
public Attribute(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
Attribute
instance.
owner
- The owner document of the new Attribute.org.w3c.dom.DOMException
Method Detail |
---|
protected org.w3c.dom.Element addAttributeValue(org.w3c.dom.Node content, oracle.security.xmlsec.util.QName type)
AttributeValue
element to this Attribute
.content
- The content of the new AttributeValue
element, to be appended as a child node.type
- The XML schema type for the AttributeValue
, to be set in an xsi:type
attribute.AttributeValue
element that was created.protected org.w3c.dom.Element addAttributeValue(org.w3c.dom.Node[] content, oracle.security.xmlsec.util.QName type)
AttributeValue
element to this Attribute
.content
- The content of the new AttributeValue
element, to be appended as child nodes.type
- The XML schema type for the AttributeValue
, to be set in an xsi:type
attribute.AttributeValue
element that was created.protected java.lang.String[] getAttributeValuesAsStrings(oracle.security.xmlsec.util.QName type)
Attribute
's AttributeValue
s that have the given xsi:type
as strings. An individual value will contain only the collected Text child nodes of the AttributeValue
, so the given xsi:type
should reference simple primitive/built-in types only.type
- The xsi:type
of the AttributeValue
elements to return. If type
is null
, the string value of all AttributeValue
s will be returned.String
s, or null
if no AttribtueValue
s of the given xsi:type
are present.protected java.lang.String[] getAttributeValuesAsStrings(oracle.security.xmlsec.util.QName type, boolean includeNull)
Attribute
's AttributeValue
s that have the given xsi:type
s as strings. An individual value will contain only the collected Text child nodes of the AttributeValue
, so the given xsi:type
should reference simple primitive/built-in types only.types
- The xsi:type
s of the AttributeValue
elements to return. If type
is null
, the string value of all AttributeValue
s will be returned.includeNull
- If true
, the string values of AttributeValue
elements with no xsi:type
attribute defined will be included in the result.String
s, or null
if no AttribtueValue
s of the given xsi:type
are present.protected static void setXsiType(org.w3c.dom.Element element, oracle.security.xmlsec.util.QName type)
element
- The attribute value element to use as the context.type
- The QName
reference.protected static oracle.security.xmlsec.util.QName getXsiType(org.w3c.dom.Element element)
element
- The attribute value element to use as the context.QName
value type or null
if not specified.public void addAttributeValue(java.lang.String value)
AttributeValue
element to this Attribute
. The new element will have the attribute xsi:type="xs:string"
and, if the given string value is null
, it will also have the attribute xsi:nil="true"
.value
- The string content of the new AttributeValue
element.public void addAttributeValues(java.lang.String[] values)
AttributeValue
element for each string in the given array. Each AttributeValue
element will have the attribute xsi:type="xs:string"
and, if a given value is null
, it will also have the attribute xsi:nil="true"
.values
- The individual contents of the new AttributeValue
elements.public java.util.List getAttributeValues()
Attribute
's AttributeValue
s.List
of AttributeValue
elements, or null
if this Attribute
has none.public java.lang.String[] getAttributeValueStrings()
Attribute
's AttributeValue
s that have xsi:type="xs:string"
.String
s, or null
if no AttributeValue
s of xsi:type="xs:string"
are present.public void setName(java.lang.String name)
name
- The String containing the attribute name.public java.lang.String getName()
protected void setNameFormat(java.lang.String formatURI)
formatURI
- A URI reference to the attribute name format.public java.lang.String getNameFormat()
public void setFriendlyName(java.lang.String fname)
fname
- The String containing the friendly name.public java.lang.String getFriendlyName()
public abstract java.lang.String getAttributeProfileID()
|
Oracle Fusion Middleware SAML 2.0 Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10676-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |