Package com.adobe.xfa
Class Int
- java.lang.Object
-
- com.adobe.xfa.Attribute
-
- com.adobe.xfa.Int
-
public final class Int extends Attribute
An XFAAttribute object which holds an integer value. This class may be used to ruct an XFAProperty object which in turn may be used in calls toXFAPropety.setProperty()
andXFAProperty.getProperty()
Example: ("Int i = node.getProperty(...)")
-
-
Constructor Summary
Constructors Constructor Description Int(java.lang.String qName, int value)
Construct an instance from an int.Int(java.lang.String qName, int value, boolean internSymbols)
Construct an instance from an int, and specify whether symbols need to be interned.Int(java.lang.String qName, java.lang.String value)
Construct an instance from the string value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
Get the attribute value.Attribute
newAttribute(java.lang.String value)
Create a new attribute, given a new valueAttribute
newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
Create a new attribute, given all attribute parametersAttribute
newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
Create a new attribute, given all attribute parametersint
toInt()
Cast this object to an integerjava.lang.String
toString()
Generates this attribute's value as a string.-
Methods inherited from class com.adobe.xfa.Attribute
getAttrValue, getLocalName, getName, getNS, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalize
-
-
-
-
Constructor Detail
-
Int
public Int(java.lang.String qName, int value)
Construct an instance from an int.- Parameters:
qName
- the qualified name for this attributevalue
- the int value of the attribute
-
Int
public Int(java.lang.String qName, int value, boolean internSymbols)
Construct an instance from an int, and specify whether symbols need to be interned.- Parameters:
qName
- the qualified name for this attributevalue
- the int value of the attributeinternSymbols
- indicates whether the symbols in other parameters need to be interned.
-
Int
public Int(java.lang.String qName, java.lang.String value)
Construct an instance from the string value- Parameters:
qName
- the qualified name for this attributevalue
- the string value of the attribute
-
-
Method Detail
-
getValue
public int getValue()
Get the attribute value.- Returns:
- the attribute value as integer
-
newAttribute
public Attribute newAttribute(java.lang.String value)
Description copied from class:Attribute
Create a new attribute, given a new value- Specified by:
newAttribute
in classAttribute
- Parameters:
value
- the string to use to create the new attribute- Returns:
- a new attribute
- See Also:
Attribute.newAttribute(String)
-
newAttribute
public Attribute newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value)
Description copied from class:Attribute
Create a new attribute, given all attribute parameters- Specified by:
newAttribute
in classAttribute
- Parameters:
NS
- the namespace for this attributelocalName
- the local name for this attributeqName
- the qualified name for this attributevalue
- the string to use to create the new attribute- Returns:
- a new attribute
-
newAttribute
public Attribute newAttribute(java.lang.String NS, java.lang.String localName, java.lang.String qName, java.lang.String value, boolean internSymbols)
Description copied from class:Attribute
Create a new attribute, given all attribute parameters- Specified by:
newAttribute
in classAttribute
- Parameters:
NS
- the namespace for this attributelocalName
- the local name for this attributeqName
- the qualified name for this attributevalue
- the string to use to create the new attributeinternSymbols
- indicates whether the symbols in other parameters need to be interned.- Returns:
- a new attribute
-
toInt
public int toInt()
Cast this object to an integer- Returns:
- the internal integer value.
-
-