Class XmlPeer
java.lang.Object
org.openpdf.text.xml.XmlPeer
- Direct Known Subclasses:
HtmlPeer
This interface is implemented by the peer of all the iText objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PropertiesThis is the Map that contains the aliases of the attributes.protected PropertiesThis is the Map that contains the default values of the attributes.protected StringThis is the name of the alias.protected StringThis is String that contains the default content of the attributes.protected StringThis is the name of the alias. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets an alias for an attribute.voidSets a value for an attribute.getAlias()Gets the tagname of the peer.getAttributes(Attributes attrs) Gets the list of attributes of the peer.Returns the default values.Returns the iText attribute name.getTag()Gets the tagname of the peer.voidsetContent(String content) Sets the default content.
-
Field Details
-
tagname
This is the name of the alias. -
customTagname
This is the name of the alias. -
attributeAliases
This is the Map that contains the aliases of the attributes. -
attributeValues
This is the Map that contains the default values of the attributes. -
defaultContent
This is String that contains the default content of the attributes.
-
-
Constructor Details
-
XmlPeer
-
-
Method Details
-
getTag
-
getAlias
-
getAttributes
Gets the list of attributes of the peer.- Parameters:
attrs- the user defined set of attributes- Returns:
- the set of attributes translated to iText attributes
-
addAlias
-
addValue
-
setContent
Sets the default content.- Parameters:
content- the default content
-
getName
-
getDefaultValues
Returns the default values.- Returns:
- A set of default (user defined) values
-