|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.xml.xpp3.Attributes
public class Attributes
XPP Attributes in a nicer form.
| Nested Class Summary | |
|---|---|
class |
Attributes.Entry
|
| Constructor Summary | |
|---|---|
Attributes()
|
|
Attributes(Attributes source)
copy constructor. |
|
Attributes(String... values)
|
|
Attributes(org.xmlpull.v1.XmlPullParser xpp)
Get Attributes from XmlParser. |
|
| Method Summary | |
|---|---|
Properties |
createProperties()
Create Properties instance from attributes. |
List<Attributes.Entry> |
extractParameters()
|
String |
get(String name)
Return the attribute with the given name. |
boolean |
getAsBoolean(String name,
boolean defaultValue)
Get as Boolean helper. |
Color |
getAsColor(String name)
|
Float |
getAsFloat(String name)
|
Integer |
getAsInteger(String name)
|
Integer |
getAsInteger(String name,
int defaultValue)
|
Map<String,String> |
getAttributes()
|
String |
getWithDefault(String name,
String defaultValue)
|
String |
getWithTag(String name,
String tag)
|
boolean |
isSet(String name)
Is the given attribute available. |
void |
merge(Attributes src)
|
void |
mergeAndTag(Attributes src,
String tag)
|
void |
refreshFromAttributes(Attributes src)
|
void |
remove(String key)
|
void |
removeWithTag(String tag)
|
void |
resolveParameters(Attributes attributes)
|
void |
set(String name,
String value)
Set an attribute. |
String |
toString()
|
void |
translateSpecialValues(Map<String,ResourceBundle> resourceBundle,
ScreenController screenController,
Properties globalProperties)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Attributes()
public Attributes(String... values)
public Attributes(org.xmlpull.v1.XmlPullParser xpp)
xpp - xpppublic Attributes(Attributes source)
source - source| Method Detail |
|---|
public void translateSpecialValues(Map<String,ResourceBundle> resourceBundle,
ScreenController screenController,
Properties globalProperties)
public boolean isSet(String name)
name - name
public String get(String name)
name - name of attibute
public String getWithDefault(String name,
String defaultValue)
public Properties createProperties()
public boolean getAsBoolean(String name,
boolean defaultValue)
name - name of attributedefaultValue - default value
public Integer getAsInteger(String name)
public Integer getAsInteger(String name,
int defaultValue)
public Float getAsFloat(String name)
public Color getAsColor(String name)
public void set(String name,
String value)
name - name of the attribute to setvalue - value to set attribute topublic void merge(Attributes src)
public void mergeAndTag(Attributes src,
String tag)
public void refreshFromAttributes(Attributes src)
public String toString()
toString in class Objectpublic List<Attributes.Entry> extractParameters()
public Map<String,String> getAttributes()
public void remove(String key)
public String getWithTag(String name,
String tag)
public void resolveParameters(Attributes attributes)
public void removeWithTag(String tag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||