| Modifier and Type | Field and Description |
|---|---|
protected Properties |
attributeAliases
This is the Map that contains the aliases of the attributes.
|
protected Properties |
attributeValues
This is the Map that contains the default values of the attributes.
|
protected String |
customTagname
This is the name of the alias.
|
protected String |
defaultContent
This is String that contains the default content of the attributes.
|
protected String |
tagname
This is the name of the alias.
|
| Constructor and Description |
|---|
XmlPeer(String name,
String alias)
Creates a XmlPeer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAlias(String name,
String alias)
Sets an alias for an attribute.
|
void |
addValue(String name,
String value)
Sets a value for an attribute.
|
String |
getAlias()
Gets the tagname of the peer.
|
Properties |
getAttributes(Attributes attrs)
Gets the list of attributes of the peer.
|
Properties |
getDefaultValues()
Returns the default values.
|
String |
getName(String name)
Returns the iText attribute name.
|
String |
getTag()
Gets the tagname of the peer.
|
void |
setContent(String content)
Sets the default content.
|
protected String tagname
protected String customTagname
protected Properties attributeAliases
protected Properties attributeValues
protected String defaultContent
public String getTag()
public String getAlias()
public Properties getAttributes(Attributes attrs)
attrs - the user defined set of attributespublic void addAlias(String name, String alias)
name - the iText tagnamealias - the custom tagnamepublic void addValue(String name, String value)
name - the iText tagnamevalue - the default value for this tagpublic void setContent(String content)
content - the default contentpublic String getName(String name)
name - the custom attribute namepublic Properties getDefaultValues()
Copyright © 2019. All rights reserved.