com.lowagie.text.xml
public class XmlPeer extends Object
Field Summary | |
---|---|
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 Summary | |
---|---|
XmlPeer(String name, String alias)
Creates a XmlPeer. |
Method Summary | |
---|---|
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.
|
Parameters: name the iText name of a tag alias the userdefined name of a tag
Parameters: name the iText tagname alias the custom tagname
Parameters: name the iText tagname value the default value for this tag
Returns: the userdefined tagname
Parameters: attrs the userdefined set of attributes
Returns: the set of attributes translated to iText attributes
Returns: A set of default (userdefined) values
Parameters: name the custom attribute name
Returns: iText translated attribute name
Returns: the iText name of a tag
Parameters: content the default content