public class IncludeImpl extends XadesDOMStructure implements Include, DOMURIReference
| Constructor and Description |
|---|
IncludeImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
IncludeImpl with the specified
context and node to unmarshal from. |
IncludeImpl(String uri)
Creates a new instance of this
IncludeImpl with the specified
uri attribute value. |
IncludeImpl(String uri,
boolean referencedData)
Creates a new instance of this
IncludeImpl with the specified
uri attribute value and referencedData attribute
value. |
| Modifier and Type | Method and Description |
|---|---|
Node |
getHere() |
String |
getLocalName() |
String |
getTargetId() |
String |
getType()
Always returns
null, as the type attribute is not
defined for the Include element. |
String |
getURI()
Returns the URI reference.
|
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent) |
boolean |
referencedData()
Returns
true if this Inlcude references a
ds:Reference and the data being time-stamped is the data
referenced by this ds:Reference; false otherwise. |
protected void |
setTargetId(String uri)
Sets the value of the targetId using the given URI.
|
protected void |
unmarshalAttributes(NamedNodeMap attributes,
DOMCryptoContext context) |
getInstance, getNamespace, getParentQualifyingPropertiesOf, getParentSignatureOfaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalElement, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, setParentStructure, toString, unmarshal, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFeatureSupportedpublic IncludeImpl(DOMCryptoContext context, Node node) throws MarshalException
IncludeImpl with the specified
context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an exception occurs during unmarshalingpublic IncludeImpl(String uri, boolean referencedData)
IncludeImpl with the specified
uri attribute value and referencedData attribute
value.uri - the uri attribute value (must be a valid bare-name
XPointer)referencedData - the referencedData attribute valuepublic IncludeImpl(String uri)
IncludeImpl with the specified
uri attribute value. This constructor should be used if the
referenceData attribute should be omitted in the corresponding
Include within the timestamp.uri - the uri attribute value (must be a valid bare-name
XPointer)public String getLocalName()
getLocalName in class iaik.xml.crypto.dom.DOMStructureDOMStructure.getLocalName()public String getURI()
IncludegetURI in interface IncludegetURI in interface URIReferenceInclude.getURI()public boolean referencedData()
Includetrue if this Inlcude references a
ds:Reference and the data being time-stamped is the data
referenced by this ds:Reference; false otherwise.referencedData in interface Includetrue if this Inlcude references a
ds:Reference and the data being time-stamped is the
data referenced by this
ds:Reference; false otherwiseInclude.referencedData()public Node getHere()
getHere in interface DOMURIReferencegetHere in class iaik.xml.crypto.dom.DOMStructure{@inheritDoc}public String getType()
null, as the type attribute is not
defined for the Include element.getType in interface URIReferenceURIReference.getType()public String getTargetId()
protected void setTargetId(String uri) throws IllegalArgumentException
uri - the URI (must be a valid bare-name XPointer)IllegalArgumentException - if uri is not a valid bare-name XPointerprotected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
marshalAttributes in class iaik.xml.crypto.dom.DOMStructureMarshalExceptionDOMStructure.marshalAttributes(DOMCryptoContext,
Element)protected void unmarshalAttributes(NamedNodeMap attributes, DOMCryptoContext context) throws MarshalException
unmarshalAttributes in class iaik.xml.crypto.dom.DOMStructureMarshalExceptionDOMStructure.unmarshalAttributes(org.w3c.dom.NamedNodeMap,
DOMCryptoContext)© 2002-2005 IAIK, © 2004, 2006 - 2017 Stiftung SIC