|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.eindex.objects.ObjectField
The ObjectField class defines the fields contained in an object node (ObjectNode class. It includes the
Constructor Summary | |
ObjectField()
Creates a new instance of the ObjectField class. |
|
ObjectField(java.lang.String name,
int type)
Creates a new instance of the ObjectField class by its name and data type. |
|
ObjectField(java.lang.String name,
int type,
java.lang.Object value)
Creates a new instance of the ObjectField class by its name, data type, and value. |
|
ObjectField(java.lang.String name,
int type,
java.lang.Object value,
FieldFlag flag)
Creates a new instance of the ObjectField class by its name, data type, value, and field flag. |
Method Summary | |
ObjectField |
copy()
Creates a copy of the field object. |
static boolean |
equals(ObjectField field1,
ObjectField field2)
Compares two field objects and determines whether they are the same. |
static java.lang.Class |
getClass(int type)
Retrieves the Java class associated with the given data type. |
FieldFlag |
getFieldFlag()
Retrieves the given field's flag. |
boolean |
getFlag(int mask)
Retrieves the value of the specified flag in the field object. |
java.lang.String |
getName()
Retrieves the name of the field. |
int |
getType()
Retrieves the data type of the field. |
static java.lang.String |
getTypeString(int type)
Retrieves the string value of the given data type. |
java.lang.Object |
getValue()
Retrieves the value of the field. |
boolean |
hasReadAccess()
Checks whether the field has read access. |
boolean |
hasUpdateAccess()
Checks whether the field has update access. |
boolean |
isChanged()
Checks whether the field value has changed. |
boolean |
isKeyType()
Checks whether the field is a key type field. |
boolean |
isNull()
Checks whether the field contains a null value. |
boolean |
isNullable()
Checks whether the field can be null. |
boolean |
isSearched()
Checks whether the field is used as criteria in searches. |
static boolean |
isValueValid(int type,
java.lang.Object value)
Verifies that the given value is of the given data type. |
boolean |
isVisible()
Checks whether the field is visible on the Enterprise Data Manager (EDM). |
void |
setChanged(boolean flag)
Sets the value of the isChanged flag, indicating whether the field value has changed. |
void |
setFlag(int mask,
boolean flag)
Sets the flag of the field object by its bit mask. |
void |
setKeyType(boolean flag)
Specifies whether the field is a key type field. |
void |
setNull(boolean flag)
Specifies whether the field contains a null value. |
void |
setNullable(boolean flag)
Specifies whether the field can be set to null. |
void |
setReadAccess(boolean flag)
Sets the value of the field's read access flag, indicating whether the field has read access. |
void |
setSearched(boolean flag)
Specifies whether the field is used as search criteria. |
void |
setUpdateAccess(boolean flag)
Sets the value of the field's update access flag, indicating whether the field has update access. |
void |
setValue(java.lang.Object value)
Sets a value into the field. |
void |
setVisible(boolean flag)
Specifies whether the field is visible on the EDM. |
java.lang.String |
toString()
Returns a string representation of the field object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectField()
public ObjectField(java.lang.String name, int type)
name
- The name of the field.type
- The data type for the field.
public ObjectField(java.lang.String name, int type, java.lang.Object value) throws ObjectException
name
- The name of the field.type
- The data type for the field.value
- The value of the field.
ObjectException
- Thrown if an error occurs while creating the field.public ObjectField(java.lang.String name, int type, java.lang.Object value, FieldFlag flag) throws ObjectException
name
- The name of the field.type
- The data type for the field.value
- The value of the field.flag
- The initial value of the field flag.
ObjectException
- Thrown if an error occurs while creating the field.Method Detail |
public ObjectField copy() throws ObjectException
ObjectField
- A copy of the given field object.
ObjectException
- Thrown if an error occurs while creating
the copy.public static boolean equals(ObjectField field1, ObjectField field2) throws ObjectException
field1
- The first field object to compare.field2
- The second field object to compare.
boolean
- An indicator of whether the field objects are the
same. Boolean true indicates the field objects are the same;
False indicates they are not.
ObjectException
- Thrown if an error occurs while comparing
the fields.public static java.lang.Class getClass(int type) throws ObjectException
type
- An integer representing a data type for a field.
Class
- The class associated with the data type.
ObjectException
- Thrown if an error occurs while retrieving the
class.public FieldFlag getFieldFlag()
FieldFlag
- The field's flag.
public boolean getFlag(int mask) throws ObjectException
mask
- An integer representing the field flag to check.
boolean
- The Boolean value of the flag specified.
ObjectException
- Thrown if an error occurs while retrieving
the flag value.public java.lang.String getName()
String
- The name of the field.
public int getType()
int
- An integer representing the data type.
public static java.lang.String getTypeString(int type)
type
- An integer representing a data type for a field.
String
- The string value for the data type.
public java.lang.Object getValue()
Object
- The value of the field.
public boolean hasReadAccess()
boolean
- An indicator of whether the field has read access.
Boolean true indicates the field has read access; false
indicates it does not.
public boolean hasUpdateAccess()
boolean
- An indicator of whether the field has update access.
Boolean true indicates the field has update access; false
indicates it does not.
public boolean isChanged()
boolean
- An indicator of whether the field value has changed.
Boolean true indicates the field value has changed; false
indicates it has not changed.
public boolean isKeyType()
boolean
- An indicator of whether the field is a key type field.
Boolean true indicates the field is key type; false
indicates it is not.
public boolean isNull()
boolean
- An indicator of whether the field is null.
Boolean true indicates the field is null; false
indicates it is not.
public boolean isNullable()
boolean
- An indicator of whether the field can be null.
Boolean true indicates the field can be null; false
indicates it cannot.
public boolean isSearched()
boolean
- An indicator of whether the field is used for searching.
Boolean true indicates the field is used for searching; false
indicates it is not.
public static boolean isValueValid(int type, java.lang.Object value)
type
- An integer representing a data type for a field.value
- A field value to check against the data type.
Boolean
- An indicator of whether the field value is of
the given value type. Boolean true indicates the field value
is of the given type; false indicates it is not.
public boolean isVisible()
boolean
- An indicator of whether the field is visible on the EDM.
Boolean true indicates the field is visible; false
indicates it is not.
public void setChanged(boolean flag)
flag
- A Boolean indicator of whether the field value is changed.
Boolean true indicates the field is changed; false
indicates it is not.
void
- None.
public void setFlag(int mask, boolean flag) throws ObjectException
mask
- The bit mask of the flag to set.flag
- The Boolean value to set in the flag.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the flag.public void setKeyType(boolean flag)
flag
- A Boolean indicator of whether the field is a key field.
Boolean true indicates the field is a key field; false
indicates it is not.
void
- None.
public void setNull(boolean flag)
flag
- A Boolean indicator of whether the field is null.
Boolean true indicates the field is null; false
indicates it is not.
void
- None.
public void setNullable(boolean flag)
flag
- A Boolean indicator of whether the field can be null.
Boolean true indicates the field can be null false
indicates it cannot.
void
- None.
public void setReadAccess(boolean flag)
flag
- A Boolean indicator of whether the field has read access.
Boolean true indicates the field has read access; false
indicates it does not.
void
- None.
public void setSearched(boolean flag)
flag
- A Boolean indicator of whether the field is used for searches.
Boolean true indicates the field is used as search criteria;
false indicates it is not.
void
- None.
public void setUpdateAccess(boolean flag)
flag
- A Boolean indicator of whether the field has update access.
Boolean true indicates the field has update access; false
indicates it does not.
void
- None.
public void setValue(java.lang.Object value) throws ObjectException
value
- An object containing the value to set in the field.
void
- None.
ObjectException
- Thrown if an error occurs while setting
the field value.public void setVisible(boolean flag)
flag
- A Boolean indicator of whether the field is visible on
the EDM. Boolean true indicates the field is visible;
false indicates it is not.
void
- None.
public java.lang.String toString()
String
- A string representation of the field object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2007 by Sun Microsystems, Inc. All Rights Reserved.