Class DefaultEbicsRootElement
java.lang.Object
org.kopi.ebics.xml.DefaultEbicsRootElement
- All Implemented Interfaces:
Serializable, EbicsElement, EbicsRootElement
- Direct Known Subclasses:
DefaultResponseElement, HIARequestElement, HIARequestOrderDataElement, HPBRequestElement, INIRequestElement, InitializationRequestElement, NoPubKeyDigestsRequestElement, ReceiptRequestElement, SignaturePubKeyOrderDataElement, SignedInfo, TransferRequestElement, UnsecuredRequestElement, UserSignature
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new defaultEbicsRootElementprotectedDefaultEbicsRootElement(EbicsSession session) Constructs a new defaultEbicsRootElement -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNamespaceDecl(String prefix, String uri) Adds a namespace declaration for theEbicsRootElementstatic StringgenerateName(String prefix) Generates a random file name with a prefix.static StringgenerateName(EbicsOrderType type) Generates a random file name with a prefix.voidinsertSchemaLocation(String namespaceURI, String localPart, String prefix, String value) Inserts a schema location to the current ebics root element.byte[]Prints a pretty XML document in Canonical XML.voidprint(PrintStream stream) Prints theEbicsElementinto the given stream.voidsave(OutputStream out) Saves theEbicsElementinto a given output stream.protected voidsetSaveSuggestedPrefixes(String uri, String prefix) Saves the Suggested Prefixes when the XML is printedbyte[]Converts theEbicsElementto a byte arraytoString()voidvalidate()Validates the request element according to the EBICS XML schema specificationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface EbicsElement
build, getName
-
Field Details
-
document
protected org.apache.xmlbeans.XmlObject document -
session
-
-
Constructor Details
-
DefaultEbicsRootElement
Constructs a new defaultEbicsRootElement- Parameters:
session- the current ebics session
-
DefaultEbicsRootElement
protected DefaultEbicsRootElement()Constructs a new defaultEbicsRootElement
-
-
Method Details
-
setSaveSuggestedPrefixes
-
prettyPrint
public byte[] prettyPrint()Prints a pretty XML document in Canonical XML.- Returns:
- the canonical XML document.
-
toPrettyString
-
insertSchemaLocation
-
generateName
Generates a random file name with a prefix.- Parameters:
type- the order type.- Returns:
- the generated file name.
-
generateName
-
toString
-
toByteArray
public byte[] toByteArray()Description copied from interface:EbicsRootElementConverts theEbicsElementto a byte array- Specified by:
toByteArrayin interfaceEbicsRootElement- Returns:
- the equivalent byte array of this
EbicsElement
-
addNamespaceDecl
Description copied from interface:EbicsRootElementAdds a namespace declaration for theEbicsRootElement- Specified by:
addNamespaceDeclin interfaceEbicsRootElement- Parameters:
prefix- namespace prefixuri- namespace uri
-
validate
Description copied from interface:EbicsRootElementValidates the request element according to the EBICS XML schema specification- Specified by:
validatein interfaceEbicsRootElement- Throws:
EbicsException- throws an EbicsException when validation fails
-
save
Description copied from interface:EbicsRootElementSaves theEbicsElementinto a given output stream.- Specified by:
savein interfaceEbicsRootElement- Parameters:
out- the output stream- Throws:
EbicsException- the save operation fails
-
print
Description copied from interface:EbicsElementPrints theEbicsElementinto the given stream.- Specified by:
printin interfaceEbicsElement- Parameters:
stream- the print stream
-