| Method from com.lowagie.text.xml.XmlPeer Detail: |
public void addAlias(String name,
String alias) {
attributeAliases.put(alias, name);
}
Sets an alias for an attribute. |
public void addValue(String name,
String value) {
attributeValues.put(name, value);
}
Sets a value for an attribute. |
public String getAlias() {
return customTagname;
}
Gets the tagname of the peer. |
public Properties getAttributes(Attributes attrs) {
Properties attributes = new Properties();
attributes.putAll(attributeValues);
if (defaultContent != null) {
attributes.put(ElementTags.ITEXT, defaultContent);
}
if (attrs != null) {
for (int i = 0; i < attrs.getLength(); i++) {
String attribute = getName(attrs.getQName(i));
attributes.setProperty(attribute, attrs.getValue(i));
}
}
return attributes;
}
Gets the list of attributes of the peer. |
public Properties getDefaultValues() {
return attributeValues;
}
Returns the default values. |
public String getName(String name) {
String value;
if ((value = attributeAliases.getProperty(name)) != null) {
return value;
}
return name;
}
Returns the iText attribute name. |
public String getTag() {
return tagname;
}
Gets the tagname of the peer. |
public void setContent(String content) {
this.defaultContent = content;
}
Sets the default content. |