Save This Page
Home » iText-2.1.7 » com.lowagie » text » xml » [javadoc | source]
com.lowagie.text.xml
public class: XmlPeer [javadoc | source]
java.lang.Object
   com.lowagie.text.xml.XmlPeer

Direct Known Subclasses:
    HtmlPeer

This interface is implemented by the peer of all the iText objects.
Field Summary
protected  String tagname    This is the name of the alias. 
protected  String customTagname    This is the name of the alias. 
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 defaultContent    This is String that contains the default content of the attributes. 
Constructor:
 public XmlPeer(String name,
    String alias) 
    Creates a XmlPeer.
    Parameters:
    name - the iText name of a tag
    alias - the user defined name of a tag
Method from com.lowagie.text.xml.XmlPeer Summary:
addAlias,   addValue,   getAlias,   getAttributes,   getDefaultValues,   getName,   getTag,   setContent
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.xml.XmlPeer Detail:
 public  void addAlias(String name,
    String alias) 
    Sets an alias for an attribute.
 public  void addValue(String name,
    String value) 
    Sets a value for an attribute.
 public String getAlias() 
    Gets the tagname of the peer.
 public Properties getAttributes(Attributes attrs) 
    Gets the list of attributes of the peer.
 public Properties getDefaultValues() 
    Returns the default values.
 public String getName(String name) 
    Returns the iText attribute name.
 public String getTag() 
    Gets the tagname of the peer.
 public  void setContent(String content) 
    Sets the default content.