|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jeuclid.elements.support.attributes.AbstractAttributeMap
public abstract class AbstractAttributeMap
Generic class for reading and parsing attributes.
| Constructor Summary | |
|---|---|
AbstractAttributeMap()
|
|
| Method Summary | |
|---|---|
protected abstract String |
getAttribute(String attrName)
Override this method to get an attribute value without a namespace. |
protected abstract String |
getAttributeNS(String namespace,
String attrName)
Override this method to get an attribtue with a namespace. |
boolean |
getBoolean(String attrName,
boolean defaultValue)
retrieve the value of the attribute as boolean. |
String |
getString(String attrName)
retrieve the value of the attribute as String. |
String |
getString(String attrName,
String defaultValue)
retrieve the value of the attribute as String. |
boolean |
hasAttribute(String attrName)
return true if an attribute is present. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.jeuclid.elements.support.attributes.AttributeMap |
|---|
getAsMap |
| Constructor Detail |
|---|
public AbstractAttributeMap()
| Method Detail |
|---|
protected abstract String getAttribute(String attrName)
attrName - name of the attribute
protected abstract String getAttributeNS(String namespace,
String attrName)
namespace - the namespaceattrName - the attribtue name
public boolean hasAttribute(String attrName)
hasAttribute in interface AttributeMapattrName - name of the attribute to look for.
public String getString(String attrName)
getString in interface AttributeMapattrName - name of the attribute
public String getString(String attrName,
String defaultValue)
getString in interface AttributeMapattrName - name of the attributedefaultValue - value to use if unset.
public boolean getBoolean(String attrName,
boolean defaultValue)
getBoolean in interface AttributeMapattrName - name of the attribute.defaultValue - value to use if unset.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||