public interface Metadata extends NamespaceContext
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
MetadataNamespaceContext |
createNamespaceContext()
Create a facade which allows a new mapping of namespace prefixes to be used to navigate and
query nodes without changing the base document.
|
MetadataNode |
getRoot() |
Metadata |
normalize()
Normalize the meta-data XML.
|
Document |
toDocument()
Return the DOM
Document representation of the metadata-tree to which this node belongs. |
Result |
toResult()
Return the
Result representation of this document. |
Metadata |
toResult(Result out)
Transform this document into the given result.
|
Metadata |
toResult(Result out,
String encoding)
Transform this document into the given result.
|
Result |
toResult(String encoding)
Return the
Result representation of this document using the given
encoding. |
Source |
toSource() |
String |
toString() |
String |
toString(String encoding) |
void |
trimWhitespace() |
com.levigo.jadice.document.internal.metadata.ValidationResult |
validate(Source... schemas)
Validate this document against specifief schemas
|
com.levigo.jadice.document.internal.metadata.ValidationResult |
validate(URL... schemaLocations)
Validate this document against specifief schemas
|
Metadata |
writeTo(OutputStream out)
Write this document to a stream
|
Metadata |
writeTo(OutputStream out,
String encoding)
Write this document to a stream
|
Metadata |
writeTo(Writer out)
Write this document to a stream
|
Metadata |
writeTo(Writer out,
String encoding)
Write this document to a stream
|
Metadata |
writeTo(XMLEventWriter writer)
Write this document to an XMLEventWriter.
|
getNamespaceURI, getPrefix, getPrefixes
static final String DEFAULT_NAMESPACE
MetadataNode getRoot()
Document toDocument()
Document
representation of the metadata-tree to which this node belongs.String toString()
String toString(String encoding)
encoding
- destination encoding of XML documentMetadata writeTo(OutputStream out)
out
- The output resultMetadata writeTo(OutputStream out, String encoding)
out
- The output resultencoding
- The new encodingMetadata writeTo(Writer out)
out
- The output resultMetadata writeTo(Writer out, String encoding)
out
- The output resultencoding
- The new encodingMetadata writeTo(XMLEventWriter writer) throws XMLStreamException
writer
- destination writerXMLStreamException
com.levigo.jadice.document.internal.metadata.ValidationResult validate(Source... schemas)
schemas
- A list of schemascom.levigo.jadice.document.internal.metadata.ValidationResult validate(URL... schemaLocations)
schemaLocations
- A list of schemasMetadata toResult(Result out)
out
- the output resultMetadata toResult(Result out, String encoding)
out
- the output resultencoding
- the encodingResult toResult()
Result
representation of this document. Useful when
using web services for example.Result
Result toResult(String encoding)
Result
representation of this document using the given
encoding. Useful when using web services for example.Result
Metadata normalize()
Document.normalizeDocument()
void trimWhitespace()
MetadataNamespaceContext createNamespaceContext()
MetadataException
- If the namespace handling has been disabled on this Metadata.Copyright © 2024 levigo holding gmbh. All rights reserved.