Package com.oopsclick.silk.storage
Class XmlUtils
- java.lang.Object
-
- com.oopsclick.silk.storage.XmlUtils
-
public class XmlUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XmlUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanattributeExist(org.w3c.dom.Node item, java.lang.String column)Attribute exist in nodebooleangetBooleanValue(org.w3c.dom.Node item, java.lang.String column)Gets attribute value as boolean The accepted true values are: true, yes, 1, on, other wise returns false.java.lang.StringgetStringValue(org.w3c.dom.Node item, java.lang.String column)Gets the attribute value as Stringjava.lang.StringgetStringValue(org.w3c.dom.Node item, java.lang.String column, java.lang.String nullValue)Gets the attribute value as String
-
-
-
Method Detail
-
getStringValue
public java.lang.String getStringValue(org.w3c.dom.Node item, java.lang.String column)Gets the attribute value as String- Parameters:
item- the itemcolumn- the column- Returns:
- the string value
-
getStringValue
public java.lang.String getStringValue(org.w3c.dom.Node item, java.lang.String column, java.lang.String nullValue)Gets the attribute value as String- Parameters:
item- the itemcolumn- the columnnullValue- the value which will be considered NULL in the database- Returns:
- the string value
-
getBooleanValue
public boolean getBooleanValue(org.w3c.dom.Node item, java.lang.String column)Gets attribute value as boolean The accepted true values are: true, yes, 1, on, other wise returns false.- Parameters:
item- the itemcolumn- the column- Returns:
- the boolean value
-
attributeExist
public boolean attributeExist(org.w3c.dom.Node item, java.lang.String column)Attribute exist in node- Parameters:
item- the itemcolumn- the column- Returns:
- true, if successful
-
-