|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ifs.beans.LibraryObjectDefinition | +--oracle.ifs.beans.SystemObjectDefinition | +--oracle.ifs.beans.PropertyDefinition
A PropertyDefinition is used to hold the specification of a Property value associated with a PropertyBundle.
The PropertyDefinition are assigned to PropertyBundleDefinition either to create a new PropertyBundle or to modify an existing one. Methods are provided to set the name & value of the Property.
Property
Constructor Summary | |
PropertyDefinition(LibrarySession session)
Constructs a PropertyDefinition by explicitly capturing the session. |
Method Summary | |
int |
getDataType()
Gets the data type of the new Property. |
AttributeValue |
getValue()
Gets the value of the new Property. |
void |
setName(java.lang.String name)
Sets the Name of the new Property. |
void |
setValue(AttributeValue av)
Sets the value and data type of the new Property. |
Methods inherited from class oracle.ifs.beans.LibraryObjectDefinition |
clone, getAttribute, getAttributes, getClassObject, getOption, getOptionKeys, removeAttribute, removeOption, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributes, setClassObject, setOption |
Constructor Detail |
public PropertyDefinition(LibrarySession session) throws IfsException
session
- the sessionIfsException
- if the operation failsMethod Detail |
public final int getDataType() throws IfsException
Equivalent to:
AttributeValue av = getValue(); return (av == null) ? Attribute.ATTRIBUTEDATATYPE_UNKNOWN : av.getInteger(getSession());
IfsException
- if the operation failspublic final AttributeValue getValue() throws IfsException
This method returns an AttributeValue that represents the value of the Property.
IfsException
- if the operation failspublic void setValue(AttributeValue av) throws IfsException
av
- the AttributeValue containing the new value;
implies the data type.IfsException
- if the operation failspublic void setName(java.lang.String name) throws IfsException
setName
in class LibraryObjectDefinition
name
- The name to be used for the new instance.IfsException
- if operation fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |