|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.xml.XmlPeer
public class XmlPeer
This interface is implemented by the peer of all the iText objects.
| Field Summary | |
|---|---|
protected java.util.Properties |
attributeAliases
This is the Map that contains the aliases of the attributes. |
protected java.util.Properties |
attributeValues
This is the Map that contains the default values of the attributes. |
protected java.lang.String |
customTagname
This is the name of the alias. |
protected java.lang.String |
defaultContent
This is String that contains the default content of the attributes. |
protected java.lang.String |
tagname
This is the name of the alias. |
| Constructor Summary | |
|---|---|
XmlPeer(java.lang.String name,
java.lang.String alias)
Creates a XmlPeer. |
|
| Method Summary | |
|---|---|
void |
addAlias(java.lang.String name,
java.lang.String alias)
Sets an alias for an attribute. |
void |
addValue(java.lang.String name,
java.lang.String value)
Sets a value for an attribute. |
java.lang.String |
getAlias()
Gets the tagname of the peer. |
java.util.Properties |
getAttributes(org.xml.sax.Attributes attrs)
Gets the list of attributes of the peer. |
java.util.Properties |
getDefaultValues()
Returns the default values. |
java.lang.String |
getName(java.lang.String name)
Returns the iText attribute name. |
java.lang.String |
getTag()
Gets the tagname of the peer. |
void |
setContent(java.lang.String content)
Sets the default content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String tagname
protected java.lang.String customTagname
protected java.util.Properties attributeAliases
protected java.util.Properties attributeValues
protected java.lang.String defaultContent
| Constructor Detail |
|---|
public XmlPeer(java.lang.String name,
java.lang.String alias)
name - the iText name of a tagalias - the user defined name of a tag| Method Detail |
|---|
public java.lang.String getTag()
public java.lang.String getAlias()
public java.util.Properties getAttributes(org.xml.sax.Attributes attrs)
attrs - the user defined set of attributes
public void addAlias(java.lang.String name,
java.lang.String alias)
name - the iText tagnamealias - the custom tagname
public void addValue(java.lang.String name,
java.lang.String value)
name - the iText tagnamevalue - the default value for this tagpublic void setContent(java.lang.String content)
content - the default contentpublic java.lang.String getName(java.lang.String name)
name - the custom attribute name
public java.util.Properties getDefaultValues()
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||