mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
fare info in connection details
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@371 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
2cd371a3f2
commit
23da0f645e
9 changed files with 85 additions and 12 deletions
|
@ -104,7 +104,12 @@ public final class XmlPullUtil
|
|||
|
||||
public static int intAttr(final XmlPullParser pp, final String attrName)
|
||||
{
|
||||
return Integer.parseInt(pp.getAttributeValue(null, attrName));
|
||||
return Integer.parseInt(pp.getAttributeValue(null, attrName).trim());
|
||||
}
|
||||
|
||||
public static float floatAttr(final XmlPullParser pp, final String attrName)
|
||||
{
|
||||
return Float.parseFloat(pp.getAttributeValue(null, attrName).trim());
|
||||
}
|
||||
|
||||
public static void requireAttr(final XmlPullParser pp, final String attrName, final String requiredValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue