public class IntegerAttribute extends AttributeValue
Modifier and Type | Field and Description |
---|---|
static String |
identifier
Official name of this type
|
Constructor and Description |
---|
IntegerAttribute(long value)
Creates a new
IntegerAttribute that represents the long value supplied. |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Encodes the value in a form suitable for including in XML data like a request or an
obligation.
|
boolean |
equals(Object o)
Returns true if the input is an instance of this class and if its value equals the value
contained in this class.
|
static IntegerAttribute |
getInstance(Node root)
Returns a new
IntegerAttribute that represents the xs:integer at a particular
DOM node. |
static IntegerAttribute |
getInstance(String value)
Returns a new
IntegerAttribute that represents the xs:integer value indicated by
the string provided. |
long |
getValue()
Returns the
long value represented by this object. |
int |
hashCode()
Returns the hashcode value used to index and compare this object with others of the same
type.
|
encode, encodeWithTags, evaluate, evaluatesToBag, getChildren, getType, isBag, returnsBag
public static final String identifier
public IntegerAttribute(long value)
IntegerAttribute
that represents the long value supplied.value
- the long
value to be representedpublic static IntegerAttribute getInstance(Node root) throws NumberFormatException
IntegerAttribute
that represents the xs:integer at a particular
DOM node.root
- the Node
that contains the desired valueIntegerAttribute
representing the appropriate value (null if there
is a parsing error)NumberFormatException
- if the string form isn't a numberpublic static IntegerAttribute getInstance(String value) throws NumberFormatException
IntegerAttribute
that represents the xs:integer value indicated by
the string provided.value
- a string representing the desired valueIntegerAttribute
representing the appropriate value (null if there
is a parsing error)NumberFormatException
- if the string isn't a numberpublic long getValue()
long
value represented by this object.long
valuepublic boolean equals(Object o)
public int hashCode()
public String encode()
AttributeValue
encode
in class AttributeValue
String
form of the valueCopyright © 2020 WSO2. All rights reserved.