public class IdentifierImpl extends XadesDOMStructure implements Identifier, DOMURIReference
Identifier
element that supports the
DOM XML representation and marshaling mechanism.iaik.xml.crypto.dom.DOMStructure.NodeWrapper
Identifier.Qualifier
Modifier and Type | Field and Description |
---|---|
protected Identifier.Qualifier |
qualifier_
The identifier qualifier.
|
protected iaik.xml.crypto.utils.URI |
uri_
The URI.
|
Constructor and Description |
---|
IdentifierImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
IdentifierImpl with the given
context and node. |
IdentifierImpl(Identifier.Qualifier qualifier,
String uri)
Creates a new instance of this
IdentifierImpl with the given
provider config, qualifier and URI. |
Modifier and Type | Method and Description |
---|---|
Node |
getHere() |
String |
getLocalName() |
Identifier.Qualifier |
getQualifier()
Returns the qualifier.
|
String |
getType() |
String |
getURI() |
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent) |
protected Element |
marshalElement(DOMCryptoContext context,
Node parent,
Node nextSibling) |
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context) |
protected void |
unmarshalElement(DOMCryptoContext context,
Element element) |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalIDAttribute, unmarshalStructures, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
protected iaik.xml.crypto.utils.URI uri_
null
)protected Identifier.Qualifier qualifier_
public IdentifierImpl(DOMCryptoContext context, Node node) throws MarshalException
IdentifierImpl
with the given
context and node.context
- the contextnode
- the node to unmarshal fromMarshalException
- if an exception occurs during unmarshalingpublic IdentifierImpl(Identifier.Qualifier qualifier, String uri)
IdentifierImpl
with the given
provider config, qualifier and URI.qualifier
- the qualifier (may be null
)uri
- the URINullPointerException
- if config
or uri
is null
public String getURI()
Identifier
getURI
in interface Identifier
getURI
in interface URIReference
URIReference.getURI()
public Identifier.Qualifier getQualifier()
getQualifier
in interface Identifier
qualifier
public String getType()
Identifier
getType
in interface Identifier
getType
in interface URIReference
URIReference.getType()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public Node getHere()
getHere
in interface DOMURIReference
getHere
in class iaik.xml.crypto.dom.DOMStructure
{@inheritDoc}
protected Element marshalElement(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
marshalElement
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.marshalElement(DOMCryptoContext,
Node, Node)
protected void unmarshalElement(DOMCryptoContext context, Element element) throws MarshalException
unmarshalElement
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalElement(DOMCryptoContext,
org.w3c.dom.Element)
protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
marshalAttributes
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.marshalAttributes(DOMCryptoContext,
Element)
protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
unmarshalAttributes
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
DOMCryptoContext)
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC