public final class Int extends Attribute
XFAPropety.setProperty() and
XFAProperty.getProperty()| Constructor and Description |
|---|
Int(String qName,
int value)
Construct an instance from an int.
|
Int(String qName,
int value,
boolean internSymbols)
Construct an instance from an int, and specify whether symbols need to be interned.
|
Int(String qName,
String value)
Construct an instance from the string value
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the attribute value.
|
Attribute |
newAttribute(String value)
Create a new attribute, given a new value
|
Attribute |
newAttribute(String NS,
String localName,
String qName,
String value)
Create a new attribute, given all attribute parameters
|
Attribute |
newAttribute(String NS,
String localName,
String qName,
String value,
boolean internSymbols)
Create a new attribute, given all attribute parameters
|
int |
toInt()
Cast this object to an integer
|
String |
toString()
Generates this attribute's value as a string.
|
getAttrValue, getLocalName, getName, getNS, getPrefix, getQName, isEmpty, isNameSpaceAttr, isSchemaAttr, isXSINilAttr, normalizepublic Int(String qName, int value)
qName - the qualified name for this attributevalue - the int value of the attributepublic Int(String qName, int value, boolean internSymbols)
qName - the qualified name for this attributevalue - the int value of the attributeinternSymbols - indicates whether the symbols in other parameters need to be interned.public int getValue()
public Attribute newAttribute(String value)
AttributenewAttribute in class Attributevalue - the string to use to create the new attributeAttribute.newAttribute(String)public Attribute newAttribute(String NS, String localName, String qName, String value)
AttributenewAttribute in class AttributeNS - 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 attributepublic Attribute newAttribute(String NS, String localName, String qName, String value, boolean internSymbols)
AttributenewAttribute in class AttributeNS - 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.public int toInt()
public String toString()
AttributetoString in class AttributeObject.toString()Copyright © 2010 - 2020 Adobe. All Rights Reserved