Class JsoupXmlDeclarationNode
- java.lang.Object
-
- com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
-
- com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupXmlDeclarationNode
-
- All Implemented Interfaces:
IAttributesContainer,INameContainer,INode,IXmlDeclarationNode
public class JsoupXmlDeclarationNode extends JsoupNode implements IXmlDeclarationNode
Implementation of theIXmlDeclarationNodeinterface; wrapper for the JSoupXmlDeclarationclass.
-
-
Field Summary
Fields Modifier and Type Field Description private IAttributesattributesprivate XmlDeclarationxmlDeclaration-
Fields inherited from class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
parentNode
-
-
Constructor Summary
Constructors Constructor Description JsoupXmlDeclarationNode(XmlDeclaration xmlDeclaration)Creates a newJsoupXmlDeclarationNodeinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttribute(java.lang.String key)Gets an attribute.IAttributesgetAttributes()Gets the attributes.java.lang.Stringname()Gets the name of the element node.-
Methods inherited from class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
addChild, childNodes, parentNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.itextpdf.styledxmlparser.node.INode
addChild, childNodes, parentNode
-
-
-
-
Field Detail
-
attributes
private final IAttributes attributes
-
xmlDeclaration
private final XmlDeclaration xmlDeclaration
-
-
Constructor Detail
-
JsoupXmlDeclarationNode
public JsoupXmlDeclarationNode(XmlDeclaration xmlDeclaration)
Creates a newJsoupXmlDeclarationNodeinstance.- Parameters:
xmlDeclaration- the xml declaration node
-
-
Method Detail
-
getAttributes
public IAttributes getAttributes()
Description copied from interface:IAttributesContainerGets the attributes.- Specified by:
getAttributesin interfaceIAttributesContainer- Returns:
- the attributes
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
Description copied from interface:IAttributesContainerGets an attribute.- Specified by:
getAttributein interfaceIAttributesContainer- Parameters:
key- the key of the attribute we want to get- Returns:
- the value of the attribute
-
name
public java.lang.String name()
Description copied from interface:INameContainerGets the name of the element node.- Specified by:
namein interfaceINameContainer- Returns:
- the string
-
-