public class XMLOutputHandler extends Object implements OutputHandler
Modifier and Type | Field and Description |
---|---|
static org.jdom2.Namespace |
SWID_NAMESPACE |
Constructor and Description |
---|
XMLOutputHandler() |
XMLOutputHandler(org.jdom2.output.Format format) |
Modifier and Type | Method and Description |
---|---|
protected org.jdom2.Element |
build(EntityBuilder builder) |
protected org.jdom2.Element |
build(EvidenceBuilder builder) |
protected org.jdom2.Element |
build(LinkBuilder builder) |
protected org.jdom2.Element |
build(MetaBuilder builder) |
protected org.jdom2.Element |
build(PayloadBuilder builder) |
protected org.jdom2.Element |
build(SWIDBuilder builder) |
protected org.jdom2.Document |
buildDocument(SWIDBuilder builder) |
org.jdom2.Document |
generateXML(SWIDBuilder builder)
Creates a JDOM2 XML Document based on the content of the builder.
|
void |
write(SWIDBuilder builder,
OutputStream os) |
public XMLOutputHandler()
public XMLOutputHandler(org.jdom2.output.Format format)
public void write(SWIDBuilder builder, OutputStream os) throws IOException, ValidationException
write
in interface OutputHandler
IOException
ValidationException
public org.jdom2.Document generateXML(SWIDBuilder builder) throws ValidationException
builder
- the SWIDBuilder
to use the information from to build the XML modelDocument
based on the SWID informationValidationException
- if the SWID to be built is invalidprotected org.jdom2.Document buildDocument(SWIDBuilder builder)
protected org.jdom2.Element build(SWIDBuilder builder)
protected org.jdom2.Element build(EntityBuilder builder)
protected org.jdom2.Element build(EvidenceBuilder builder)
protected org.jdom2.Element build(LinkBuilder builder)
protected org.jdom2.Element build(MetaBuilder builder)
protected org.jdom2.Element build(PayloadBuilder builder)
Copyright © 2020 National Institute of Standards and Technology. All rights reserved.