public class PropertyDefinition extends SystemObjectDefinition
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,
Serialized FormLibraryObjectDefinition.EnumToIntegerCode, LibraryObjectDefinition.LookupByNamem_Attributes, m_ClassObjectName, m_ClassObjectValue, m_ContentSpecifications, m_DefinitionLists, m_Definitions, m_EnclosedDefinition, m_Id, m_Options, m_ReadOnly, m_ReferenceAttributes, m_Session, m_SystemOptions| Constructor and Description |
|---|
PropertyDefinition(LibrarySessionInterface session)
Construct a definition explicitly capturing the
session.
|
PropertyDefinition(LibrarySessionInterface session,
String className)
Construct a definition, explicitly capturing the
session and setting the initial classobject.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDataType()
Gets the data type of the new Property.
|
String |
getName()
Gets the Name of the new Property that was set via setName().
|
AttributeValue |
getValue()
Gets the value of the new Property.
|
void |
setName(String name)
Sets the Name of the new Property.
|
void |
setValue(AttributeValue av)
Sets the value and data type of the new Property.
|
addCategoryDefinition, addCategoryDefinitionForUpdate, addCategoryDefinitions, addCategoryForDelete, applySettings, getCategoriesForDelete, getCategoryDefinitions, getCategoryDefinitionsForUpdate, getCreateCategoriesServerSideOption, removeCategoriesForDelete, removeCategoryDefinitions, removeCategoryDefinitionsForUpdate, setCategoryDefinitions, setCreateCategoriesServerSideOption, toSystemObjectDefinition, toSystemObjectDefinitionaddDefinition, addDefinitions, addProperty, addPropertyDefinition, addPropertyDefinition, addPropertyDefinitions, addPropertyDefinitions, addSimplePropertyDefinition, addSimplePropertyDefinition, addSimplePropertyDefinitions, addSimplePropertyDefinitions, applyEnumSetting, applyEnumSetting, applyMapSetting, applyMapSetting, applyObjectArraySetting, applyObjectArraySetting, applyObjectSetting, applyObjectSetting, applySetting, applySetting, captureSession, captureSession, captureSession, clone, constructInstance, constructInstance, constructInstance, copyInto, deriveObjectArraySetting, deriveObjectSetting, getAttribute, getAttribute, getAttributes, getAttributes, getAttributesSorted, getClassId, getClassObject, getClassObjectValue, getContentSpecification, getContentSpecificationKeys, getCopiedObjectValue, getDefinition, getDefinitionClassName, getDefinitionKeys, getDefinitionListKeys, getDefinitions, getId, getLibrarySession, getOption, getOptionAsAttributeValue, getOptionKeys, getPolicyMode, getPropertyDefinitions, getReferenceAttribute, getReferenceAttributes, getServerDefinition, getSession, getSimplePropertyDefinitions, getSLibrarySession, getStringAttribute, getSystemOption, getSystemOptionAsAttributeValue, getSystemOptionAsBoolean, getSystemOptionKeys, getWriteableInstance, isReadOnly, prepareForDefinitionObject, processSimplePropertiesForCreate, processSimplePropertiesForUpdate, removeAttribute, removeContentSpecification, removeDefinition, removeDefinitions, removeOption, removePropertyDefinitions, removeReferenceAttribute, removeSimplePropertyDefinitions, removeSystemOption, reset, resolve, setAttribute, setAttribute, setAttribute, setAttributeByUpperCaseName, setAttributeByUpperCaseName, setAttributePolicyMode, setAttributes, setClassId, setClassname, setClassObject, setClassObjectValue, setContentSpecification, setCopiedObjectValue, setDefinition, setDefinitions, setId, setOption, setReadOnly, setReferenceAttribute, setReferenceAttribute, setSession, setSimplePropertyDefinitions, setSystemOption, unresolve, verifySessionpublic PropertyDefinition(LibrarySessionInterface session) throws IfsException
session - the current sessionIfsException - if the operation failspublic PropertyDefinition(LibrarySessionInterface session, String className) throws IfsException
session - the current sessionclassName - the initial class nameIfsException - if the operation failspublic 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. A null value is returned if this PropertyDefinition is being used to remove a Property from an existing PropertyBundle. In this case, a name will still have to be set, via setName(), to specify which Property is to be removed.
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 String getName() throws IfsException
getName in class LibraryObjectDefinitionIfsException - if operation fails.public void setName(String name) throws IfsException
setName in class LibraryObjectDefinitionname - The name to be used for the new instance.IfsException - if operation fails.Copyright © 2025. All rights reserved.