|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.common.AttributeValue
An AttributeValue represents the value of an Attribute of a LibraryObject.
An AttributeValue is instantiated any time a value needs to be represented.
AttributeValues are implicitly created in getting the value of an Attribute.
They may also be explicitly created using the newAttributeValue
factory methods, in order to set the value of an Attribute in a LibraryObject
or LibraryObjectDefinition.
In addition to the value itself, an AttributeValue tracks the data type, whether the value is an array-type, and whether the value is null. The class also provides methods to retrieve the value as various Java types, such as int, Integer, or String (not all of these are available for all AttributeValue data types). All of these conversion methods require a LibrarySession or S_LibrarySession argument. This session's Localizer is used to perform any needed localization (specifically, parsing and formatting numbers and dates).
AttributeValues also track the name of the Attribute whose value they
represent. After you use a newAttributeValue
method to create
an AttributeValue, you can invoke the setName
method to set its
name. This is optional, unless you want to include the AttributeValue in an
array passed to the LibraryObject.setAttributes(AttributeValue[])
method. Note that once an AttributeValue's name is set, it cannot be altered
except in limited ways using the ensureUpperCaseName
and
overrideName
methods.
Method Summary | |
static java.util.Hashtable |
arrayToHashtable(AttributeValue[] attrVals)
Converts an array of AttributeValues to a hashtable, hashed by name. |
void |
ensureUpperCaseName()
Ensures the name of this AttributeValue (if any) is uppercase. |
boolean |
getBoolean(LibrarySessionInterface session)
Gets this AttributeValue's representation as a boolean. |
boolean[] |
getBooleanArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of booleans. |
boolean |
getBooleanArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of booleans. |
java.lang.Boolean |
getBooleanObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a Boolean. |
java.lang.Boolean[] |
getBooleanObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Booleans. |
java.lang.Boolean |
getBooleanObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Booleans. |
int |
getDataType()
Gets the data type of this AttributeValue. |
java.util.Date |
getDate(LibrarySessionInterface session)
Gets this AttributeValue's representation as a Date. |
java.util.Date[] |
getDateArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Dates. |
java.util.Date |
getDateArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Dates. |
DirectoryObjectInterface |
getDirectoryObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a DirectoryObject. |
DirectoryObjectInterface[] |
getDirectoryObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of DirectoryObjects. |
DirectoryObjectInterface |
getDirectoryObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of DirectoryObjects. |
double |
getDouble(LibrarySessionInterface session)
Gets this AttributeValue's representation as a double. |
double[] |
getDoubleArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of doubles. |
double |
getDoubleArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of doubles. |
java.lang.Double |
getDoubleObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a Double. |
java.lang.Double[] |
getDoubleObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Doubles. |
java.lang.Double |
getDoubleObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Doubles. |
int |
getElementCount()
Gets the number of elements in an array-type AttributeValue. |
int |
getInteger(LibrarySessionInterface session)
Gets this AttributeValue's representation as an int. |
int[] |
getIntegerArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of ints. |
int |
getIntegerArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of ints. |
java.lang.Integer |
getIntegerObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as an Integer. |
java.lang.Integer[] |
getIntegerObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Integers. |
java.lang.Integer |
getIntegerObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Integers. |
long |
getLong(LibrarySessionInterface session)
Gets this AttributeValue's representation as a long. |
long[] |
getLongArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of longs. |
long |
getLongArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of longs. |
java.lang.Long |
getLongObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a Long. |
java.lang.Long[] |
getLongObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Longs. |
java.lang.Long |
getLongObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Longs. |
java.lang.String |
getName()
Gets the name of this AttributeValue. |
java.lang.Object |
getObject(LibrarySessionInterface session)
Gets the default object representation of this AttributeValue. |
PublicObjectInterface |
getPublicObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a PublicObject. |
PublicObjectInterface[] |
getPublicObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of PublicObjects. |
PublicObjectInterface |
getPublicObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of PublicObjects. |
SchemaObjectInterface |
getSchemaObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a SchemaObject. |
SchemaObjectInterface[] |
getSchemaObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of SchemaObjects. |
SchemaObjectInterface |
getSchemaObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of SchemaObjects. |
java.lang.String |
getString(LibrarySessionInterface session)
Gets this AttributeValue's representation as a String. |
java.lang.String[] |
getStringArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of Strings. |
java.lang.String |
getStringArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of Strings. |
SystemObjectInterface |
getSystemObject(LibrarySessionInterface session)
Gets this AttributeValue's representation as a SystemObject. |
SystemObjectInterface[] |
getSystemObjectArray(LibrarySessionInterface session)
Gets this AttributeValue's representation as an array of SystemObjects. |
SystemObjectInterface |
getSystemObjectArray(LibrarySessionInterface session,
int index)
Get the specified element of this AttributeValue's representation as an array of SystemObjects. |
static AttributeValue[] |
hashtableToArray(java.util.Hashtable hashtable)
Converts a hashtable of AttributeValues to an array. |
boolean |
isArrayType()
Gets whether this AttributeValue is an array-type AttributeValue. |
boolean |
isNullValue()
Gets whether this AttributeValue is null. |
static AttributeValue |
newAttributeValue()
Constructs a null AttributeValue of an unknown data type. |
static AttributeValue |
newAttributeValue(AttributeValue av)
Constructs a new AttributeValue identical to the specified AttributeValue except with no name. |
static AttributeValue |
newAttributeValue(boolean value)
Constructs a new boolean AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Boolean value)
Constructs a new boolean AttributeValue. |
static AttributeValue |
newAttributeValue(boolean[] values)
Constructs a new array-type boolean AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Boolean[] values)
Constructs a new array-type boolean AttributeValue. |
static AttributeValue |
newAttributeValue(java.util.Date value)
Constructs a new date AttributeValue. |
static AttributeValue |
newAttributeValue(java.util.Date[] values)
Constructs a new array-type date AttributeValue. |
static AttributeValue |
newAttributeValue(DirectoryObjectInterface value)
Constructs a new DirectoryObject AttributeValue. |
static AttributeValue |
newAttributeValue(DirectoryObjectInterface[] values)
Constructs a new array-type DirectoryObject AttributeValue. |
static AttributeValue |
newAttributeValue(double value)
Constructs a new double AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Double value)
Constructs a new double AttributeValue. |
static AttributeValue |
newAttributeValue(double[] values)
Constructs a new array-type double AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Double[] values)
Constructs a new array-type double AttributeValue. |
static AttributeValue |
newAttributeValue(int value)
Constructs a new integer AttributeValue. |
static AttributeValue |
newAttributeValue(int[] values)
Constructs a new array-type integer AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Integer value)
Constructs a new integer AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Integer[] values)
Constructs a new array-type integer AttributeValue. |
static AttributeValue |
newAttributeValue(long value)
Constructs a new long AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Long value)
Constructs a new long AttributeValue. |
static AttributeValue |
newAttributeValue(long[] values)
Constructs a new array-type long AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Long[] values)
Constructs a new array-type long AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.Object value)
Constructs a new AttributeValue for the specified object. |
static AttributeValue |
newAttributeValue(PublicObjectInterface value)
Constructs a new PublicObject AttributeValue. |
static AttributeValue |
newAttributeValue(PublicObjectInterface[] values)
Constructs a new array-type PublicObject AttributeValue. |
static AttributeValue |
newAttributeValue(SchemaObjectInterface value)
Constructs a new SchemaObject AttributeValue. |
static AttributeValue |
newAttributeValue(SchemaObjectInterface[] values)
Constructs a new array-type SchemaObject AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.String value)
Constructs a new string AttributeValue. |
static AttributeValue |
newAttributeValue(java.lang.String[] values)
Constructs a new array-type string AttributeValue. |
static AttributeValue |
newAttributeValue(SystemObjectInterface value)
Constructs a new SystemObject AttributeValue. |
static AttributeValue |
newAttributeValue(SystemObjectInterface[] values)
Constructs a new array-type SystemObject AttributeValue. |
static AttributeValue |
newNullAttributeValue(int attributeDataType)
Constructs a null AttributeValue of the specified data type. |
static AttributeValue |
overrideName(java.lang.String name,
AttributeValue av)
Overrides the name set for this AttributeValue by cloning the AttributeValue if the name is already set. |
void |
setName(java.lang.String name)
Sets the name of this AttributeValue. |
java.lang.String |
toString()
Gets the default object representation of this AttributeValue as a string. |
java.lang.String |
toString(LibrarySessionInterface sess)
Gets the default object representation of this AttributeValue as a string. |
Method Detail |
public static final AttributeValue newAttributeValue(int value) throws IfsException
value
- the integer valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Integer value) throws IfsException
value
- the integer valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(long value) throws IfsException
value
- the long valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Long value) throws IfsException
value
- the long valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(double value) throws IfsException
value
- the double valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Double value) throws IfsException
value
- the double valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.String value) throws IfsException
value
- the string valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.util.Date value) throws IfsException
value
- the date valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(boolean value) throws IfsException
value
- the boolean valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Boolean value) throws IfsException
value
- the boolean valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(SchemaObjectInterface value) throws IfsException
value
- the SchemaObject valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(SystemObjectInterface value) throws IfsException
value
- the SystemObject valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(PublicObjectInterface value) throws IfsException
value
- the PublicObject valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(DirectoryObjectInterface value) throws IfsException
value
- the DirectoryObject valueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(int[] values) throws IfsException
values
- the integer valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Integer[] values) throws IfsException
values
- the integer valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(long[] values) throws IfsException
values
- the long valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Long[] values) throws IfsException
values
- the long valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(double[] values) throws IfsException
values
- the double valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Double[] values) throws IfsException
values
- the double valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.String[] values) throws IfsException
values
- the string valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.util.Date[] values) throws IfsException
values
- the date valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(boolean[] values) throws IfsException
values
- the boolean valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Boolean[] values) throws IfsException
values
- the boolean valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(SchemaObjectInterface[] values) throws IfsException
values
- the SchemaObject valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(SystemObjectInterface[] values) throws IfsException
values
- the SystemObject valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(PublicObjectInterface[] values) throws IfsException
values
- the PublicObject valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(DirectoryObjectInterface[] values) throws IfsException
values
- the DirectoryObject valuesIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(AttributeValue av) throws IfsException
av
- the existing AttributeValueIfsException
- if the operation failspublic static final AttributeValue newAttributeValue(java.lang.Object value) throws IfsException
value
- the objectIfsException
- (IFS-10403 or IFS-10404) if an
AttributeValue cannot be constructed for
value
's classpublic static final AttributeValue newAttributeValue() throws IfsException
public static final AttributeValue newNullAttributeValue(int attributeDataType) throws IfsException
attributeDataType
- the Attribute data typeIfsException
- (IFS-10400) if attributeDataType
is invalidpublic final int getInteger(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10405) if this AttributeValue is nullIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an intpublic final java.lang.Integer getIntegerObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an Integerpublic final long getLong(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10405) if this AttributeValue is nullIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a longpublic final java.lang.Long getLongObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Longpublic final double getDouble(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10405) if this AttributeValue is nullIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a doublepublic final java.lang.Double getDoubleObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Doublepublic final java.lang.String getString(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Stringpublic final java.util.Date getDate(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Datepublic final boolean getBoolean(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10405) if this AttributeValue is nullIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a booleanpublic final java.lang.Boolean getBooleanObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Booleanpublic final SchemaObjectInterface getSchemaObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SchemaObjectpublic final SystemObjectInterface getSystemObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SystemObjectpublic final PublicObjectInterface getPublicObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a PublicObjectpublic final DirectoryObjectInterface getDirectoryObject(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a DirectoryObjectpublic final int[] getIntegerArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an int[]public final java.lang.Integer[] getIntegerObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an Integer[]public final long[] getLongArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a long[]public final java.lang.Long[] getLongObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Long[]public final double[] getDoubleArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a double[]public final java.lang.Double[] getDoubleObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Double[]public final java.lang.String[] getStringArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a String[]public final java.util.Date[] getDateArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Date[]public final boolean[] getBooleanArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a boolean[]public final java.lang.Boolean[] getBooleanObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Boolean[]public final SchemaObjectInterface[] getSchemaObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SchemaObject[]public final SystemObjectInterface[] getSystemObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SystemObject[]public final PublicObjectInterface[] getPublicObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a PublicObject[]public final DirectoryObjectInterface[] getDirectoryObjectArray(LibrarySessionInterface session) throws IfsException
session
- the sessionIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a DirectoryObject[]public final int getIntegerArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an int[]public final java.lang.Integer getIntegerObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as an Integer[]public final long getLongArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a long[]public final java.lang.Long getLongObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Long[]public final double getDoubleArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a double[]public final java.lang.Double getDoubleObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Double[]public final java.lang.String getStringArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a String[]public final java.util.Date getDateArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Date[]public final boolean getBooleanArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a boolean[]public final java.lang.Boolean getBooleanObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a Boolean[]public final SchemaObjectInterface getSchemaObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SchemaObject[]public final SystemObjectInterface getSystemObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a SystemObject[]public final PublicObjectInterface getPublicObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a PublicObject[]public final DirectoryObjectInterface getDirectoryObjectArray(LibrarySessionInterface session, int index) throws java.lang.IndexOutOfBoundsException, IfsException
session
- the sessionindex
- the zero-based indexIfsException
- (IFS-10406) if this AttributeValue cannot
be represented as a DirectoryObject[]public final void setName(java.lang.String name) throws IfsException
name
- the string nameIfsException
- if the operation failspublic static final AttributeValue overrideName(java.lang.String name, AttributeValue av) throws IfsException
name
- the nameav
- the AttributeValueIfsException
- if the operation failspublic final void ensureUpperCaseName() throws IfsException
IfsException
- if the operation failspublic final java.lang.String getName() throws IfsException
public int getDataType() throws IfsException
public final boolean isArrayType() throws IfsException
IfsException
- if the operation failspublic boolean isNullValue() throws IfsException
public int getElementCount() throws IfsException
public java.lang.Object getObject(LibrarySessionInterface session) throws IfsException
For example, the default object representation of a boolean AttributeValue is a Java Boolean.
session
- the sessionIfsException
- (IFS-10406) if there is a AttributeValue
conversion errorpublic final java.lang.String toString()
Equivalent to getObject(null).toString()
. Unlike the
getString
method, the returned string is completely
unformatted and unlocalized.
toString
in class java.lang.Object
public final java.lang.String toString(LibrarySessionInterface sess)
Equivalent to getObject(sess).toString()
. Unlike the
getString
method, the returned string is completely
unformatted and unlocalized.
public static final AttributeValue[] hashtableToArray(java.util.Hashtable hashtable) throws IfsException
hashtable
- the hashtable of AttributeValuespublic static final java.util.Hashtable arrayToHashtable(AttributeValue[] attrVals) throws IfsException
AttributeValues whose name is unset are ignored.
attrVals
- an array of AttributeValues
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |