|
Oracle Content Management SDK | |||||||||
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.PublicObjectDefinition | +--oracle.ifs.beans.ApplicationObjectDefinition | +--oracle.ifs.beans.PropertyBundleDefinition
A PropertyBundleDefinition class is used to create or update a PropertyBundle.
Most of the specifications can be set using the setAttribute() method inherited from LibraryObjectDefinition. Only the methods used to add Property objects to the new or updated PropertyBundle require methods specific to this class.
LibraryObjectDefinition
,
PropertyBundle
,
PropertyDefinition
Constructor Summary | |
PropertyBundleDefinition(LibrarySession session)
Constructs a PropertyBundleDefinition explicitly capturing the session. |
Method Summary | |
void |
addPropertyDefinition(PropertyDefinition def)
Adds a Property to the new PropertyBundle. |
void |
addPropertyValue(AttributeValue av)
Adds a Property Value to the new PropertyBundle. |
void |
addPropertyValue(java.lang.String name,
AttributeValue av)
Adds a Property Value to the new PropertyBundle. |
PropertyDefinition[] |
getPropertyDefinitions()
Gets all PropertyDefinition in the PropertyBundleDefinition. |
void |
setPropertyDefinitions(PropertyDefinition[] defs)
Sets an explicit set of PropertyDefinitions. |
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 PropertyBundleDefinition(LibrarySession session) throws IfsException
session
- the sessionIfsException
- if the operation failsMethod Detail |
public void addPropertyValue(AttributeValue av) throws IfsException
This results in the creation of a PropertyDefinition, which gets added to the list of Properties to create.
Equivalent to:
PropertyDefinition pdef = new PropertyDefinition(session); pdef.setValue(av); addPropertyDefinition(pdef);
av
- the AttributeValue representing the Property valueIfsException
- if the operation failspublic void addPropertyValue(java.lang.String name, AttributeValue av) throws IfsException
This results in the creation of a PropertyDefinition, which gets added to the list of Properties to create.
Equivalent to:
PropertyDefinition pdef = new PropertyDefinition(session); pdef.setValue(av); pdef.setName(name); addPropertyDefinition(pdef);
name
- the Property nameav
- the Property valueIfsException
- if the operation failspublic final void addPropertyDefinition(PropertyDefinition def) throws IfsException
def
- the PropertyDefinition of the new PropertyIfsException
- if the operation failspublic void setPropertyDefinitions(PropertyDefinition[] defs) throws IfsException
defs
- the new set of PropertyDefinitionsIfsException
- if the operation failspublic PropertyDefinition[] getPropertyDefinitions() throws IfsException
IfsException
- if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |