public class ObjectIdentifierImpl extends XadesDOMStructure implements ObjectIdentifier
ObjectIdentifier
type that supports the
DOM XML processing and representation method.implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED
LOCAL_NAME_IN_COMMITMENTTYPEINDICATION, LOCAL_NAME_IN_DATAOBJECTFORMAT, LOCAL_NAME_IN_SIGNATUREPOLICYID, LOCAL_NAME_OBJECTIDENTIFIER, LOCAL_NAME_SPDOCSPECIFICATION
Constructor and Description |
---|
ObjectIdentifierImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
ObjectIdentifierImpl with the
given provider config, context and node. |
ObjectIdentifierImpl(String identifier,
Identifier.Qualifier qualifier,
String description,
List documentationReferences)
Creates a new instance of this
ObjectIdentifierImpl with the
given identifier, list of qualifier, description and list of documentation
references. |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the description.
|
List |
getDocumentationReferences()
Returns the list of
DocumentationReferences . |
Identifier |
getIdentifer()
Deprecated.
Method name misspelled.
|
Identifier |
getIdentifier()
Returns the
Identifier . |
String |
getLocalName() |
Identifier.Qualifier |
getQualifier()
Returns the
Qualifier . |
Node |
marshal(DOMCryptoContext context,
Node parent,
Node nextSibling) |
protected void |
putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) |
void |
setLocalName(String localName)
Sets the localname of the element to be marshaled.
|
void |
unmarshal(DOMCryptoContext context) |
protected void |
unmarshalStructures(NodeList nodes,
DOMCryptoContext context) |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOf
addBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshalAttributes, marshalElement, marshalIDAttribute, newIDforLookUp, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, wrapNode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFeatureSupported
public ObjectIdentifierImpl(DOMCryptoContext context, Node node) throws MarshalException
ObjectIdentifierImpl
with the
given provider config, context and node.context
- the contextnode
- the node to unmarshal fromNullPointerException
- if context
is null
MarshalException
- if an exception occurs during the unmarshalingpublic ObjectIdentifierImpl(String identifier, Identifier.Qualifier qualifier, String description, List documentationReferences)
ObjectIdentifierImpl
with the
given identifier, list of qualifier, description and list of documentation
references.identifier
- the URI identifying the objectqualifier
- identifier qualifier. One of
OIDAsURN
,
OIDAsURI
or null
. A value of null
is
implies
OIDAsURI
.description
- an optional textual description (may be null
)documentationReferences
- a list of String
s representing URI references pointing to
further explanatory documentation of the identifier (may be
null
or empty)NullPointerException
- if config
or identifier
is
null
public String getDescription()
ObjectIdentifier
getDescription
in interface ObjectIdentifier
ObjectIdentifier.getDescription()
public List getDocumentationReferences()
ObjectIdentifier
DocumentationReferences
.getDocumentationReferences
in interface ObjectIdentifier
String
sObjectIdentifier.getDocumentationReferences()
public Identifier getIdentifer()
ObjectIdentifier
Identifier
.getIdentifer
in interface ObjectIdentifier
Identifier
ObjectIdentifier.getIdentifer()
,
getIdentifier()
public Identifier getIdentifier()
ObjectIdentifier
Identifier
.getIdentifier
in interface ObjectIdentifier
Identifier
ObjectIdentifier.getIdentifier()
public Identifier.Qualifier getQualifier()
ObjectIdentifier
Qualifier
.getQualifier
in interface ObjectIdentifier
Qualifier
ObjectIdentifier.getQualifier()
public String getLocalName()
getLocalName
in class iaik.xml.crypto.dom.DOMStructure
DOMStructure.getLocalName()
public void setLocalName(String localName)
localName
- the localname of the element to be marshaled.public Node marshal(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
marshal
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.marshal(DOMCryptoContext, Node, Node)
protected void unmarshalStructures(NodeList nodes, DOMCryptoContext context) throws MarshalException
unmarshalStructures
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshalStructures(org.w3c.dom.NodeList,
DOMCryptoContext)
protected void putChildStructure(iaik.xml.crypto.dom.DOMStructure childStructure) throws MarshalException
putChildStructure
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.putChildStructure(DOMStructure)
public void unmarshal(DOMCryptoContext context) throws MarshalException
unmarshal
in class iaik.xml.crypto.dom.DOMStructure
MarshalException
DOMStructure.unmarshal(DOMCryptoContext)
© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC