Package net.ripe.rpki.commons.xml
Class DomXmlSerializer<T>
- java.lang.Object
-
- net.ripe.rpki.commons.xml.DomXmlSerializer<T>
-
- All Implemented Interfaces:
XmlSerializer<T>
- Direct Known Subclasses:
AbstractProvisioningPayloadXmlSerializer,IdentitySerializer,TrustAnchorRequestSerializer,TrustAnchorResponseSerializer
public abstract class DomXmlSerializer<T> extends Object implements XmlSerializer<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDomXmlSerializer(String xmlns)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementaddChild(Document doc, Node parent, String childName)protected Optional<String>getAttributeValue(Element node, String attr)protected List<Element>getChildElements(Element parent, String tagName)protected Optional<Element>getElement(Document doc, String elementName)protected StringgetElementTextContent(Element element)protected Optional<Element>getOptionalSingleChildElement(Element parent, String tagName)protected StringgetRequiredAttributeValue(Element node, String attr)protected ElementgetSingleChildElement(Element parent, String tagName)protected Stringserialize(Document document)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.ripe.rpki.commons.xml.XmlSerializer
deserialize, serialize
-
-
-
-
Field Detail
-
xmlns
protected final String xmlns
-
-
Constructor Detail
-
DomXmlSerializer
protected DomXmlSerializer(String xmlns)
-
-
Method Detail
-
getOptionalSingleChildElement
protected Optional<Element> getOptionalSingleChildElement(Element parent, String tagName)
-
serialize
protected String serialize(Document document) throws TransformerException
- Throws:
TransformerException
-
-