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 theIXmlDeclarationNode
interface; wrapper for the JSoupXmlDeclaration
class.
-
-
Field Summary
Fields Modifier and Type Field Description private IAttributes
attributes
private XmlDeclaration
xmlDeclaration
-
Fields inherited from class com.itextpdf.styledxmlparser.node.impl.jsoup.node.JsoupNode
parentNode
-
-
Constructor Summary
Constructors Constructor Description JsoupXmlDeclarationNode(XmlDeclaration xmlDeclaration)
Creates a newJsoupXmlDeclarationNode
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAttribute(java.lang.String key)
Gets an attribute.IAttributes
getAttributes()
Gets the attributes.java.lang.String
name()
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 newJsoupXmlDeclarationNode
instance.- Parameters:
xmlDeclaration
- the xml declaration node
-
-
Method Detail
-
getAttributes
public IAttributes getAttributes()
Description copied from interface:IAttributesContainer
Gets the attributes.- Specified by:
getAttributes
in interfaceIAttributesContainer
- Returns:
- the attributes
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
Description copied from interface:IAttributesContainer
Gets an attribute.- Specified by:
getAttribute
in 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:INameContainer
Gets the name of the element node.- Specified by:
name
in interfaceINameContainer
- Returns:
- the string
-
-