Class XmlValue
- java.lang.Object
-
- org.eolang.jeo.representation.xmir.XmlValue
-
public final class XmlValue extends Object
XML value.- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
bool()
Convert hex string to boolean.byte[]
bytes()
Convert hex string to a byte array.int
integer()
Convert hex string to integer.Object
object()
Convert hex string to an object.String
string()
Convert hex string to human-readable string.
-
-
-
Constructor Detail
-
XmlValue
public XmlValue(XmlNode node)
Constructor.- Parameters:
node
- XML node.
-
-
Method Detail
-
string
public String string()
Convert hex string to human-readable string. Example: "48 65 6C 6C 6F 20 57 6F 72 6C 64 21" -> "Hello World!"- Returns:
- Human-readable string.
-
bool
public boolean bool()
Convert hex string to boolean.- Returns:
- Boolean.
-
integer
public int integer()
Convert hex string to integer.- Returns:
- Integer.
-
bytes
public byte[] bytes()
Convert hex string to a byte array.- Returns:
- Byte array.
-
object
public Object object()
Convert hex string to an object.- Returns:
- Object.
-
-