public class SimpleProperty extends TieSimpleObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
The name of the ClassObject representing this class.
|
static String |
DEDICATED_ATTRIBUTE
The name of the Attribute representing
whether the value of this property is dedicated to this property, meaning
it will be freed when the property is freed.
|
static String |
DOUBLEVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a Double.
|
static String |
DOUBLEVALUES_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is an array of Doubles.
|
static String |
LONGLONGMAPVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a Long-Long Map.
|
static String |
LONGSTRINGMAPVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a Long-String Map.
|
static String |
LONGVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a numeric, date, boolean, or object.
|
static String |
LONGVALUES_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is an array of numeric, date, boolean, or object.
|
static String |
NAME_ATTRIBUTE
The name of the Attribute representing
The name of the SimpleProperty.
|
static String |
REFERENCINGCLASSOBJECTID_ATTRIBUTE
The name of the Attribute representing
The ClassObject of the object which references this property.
|
static String |
REFERENCINGOBJECTID_ATTRIBUTE
The name of the Attribute representing
The ID of the object which references this property.
|
static String |
STRINGDOUBLEMAPVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a String-Double Map.
|
static String |
STRINGLONGMAPVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a String-Long Map.
|
static String |
STRINGSTRINGMAPVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a String-String Map.
|
static String |
STRINGVALUE_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is a String.
|
static String |
STRINGVALUES_ATTRIBUTE
The name of the Attribute representing
The value of this Property if the datatype is an array of Strings.
|
static String |
VALUECLASSOBJECTID_ATTRIBUTE
The name of the Attribute representing
The ClassObject ID of the value of this SimpleProperty, if it is a SimpleObject or SimpleObject array type.
|
static String |
VALUEDATATYPE_ATTRIBUTE
The name of the Attribute representing
The datatype of the value of this SimpleProperty.
|
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session, PROPERTYBUNDLE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
SimpleProperty(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a SimpleProperty object.
|
Modifier and Type | Method and Description |
---|---|
void |
addToStringArray(String val)
Adds a String value to the String array.
|
void |
addToStringArray(String[] val)
Adds String values to the String array.
|
static SimpleProperty[] |
deriveNewSimplePropertySet(LibraryObject refingObject,
SimpleProperty[] originalProps,
SimplePropertyDefinition[] propDefs)
Create or update SimpleProperty obejcts.
|
Double |
getDoubleValue()
Gets The value of this Property if the datatype is a Double.
|
Double[] |
getDoubleValues()
Gets The value of this Property if the datatype is an array of Doubles.
|
Map<Long,Long> |
getLongLongMapValue()
Gets The value of this Property if the datatype is a Long-Long Map.
|
Map<Long,String> |
getLongStringMapValue()
Gets The value of this Property if the datatype is a Long-String Map.
|
Long |
getLongValue()
Gets The value of this Property if the datatype is a numeric, date, boolean, or object.
|
Long[] |
getLongValues()
Gets The value of this Property if the datatype is an array of numeric, date, boolean, or object.
|
Long |
getReferencingClassObjectId()
Gets The ClassObject of the object which references this property.
|
LibraryObject |
getReferencingObject()
Gets the object which references this property.
|
Long |
getReferencingObjectId()
Gets The ID of the object which references this property.
|
Map<String,Double> |
getStringDoubleMapValue()
Gets The value of this Property if the datatype is a String-Double Map.
|
Map<String,Long> |
getStringLongMapValue()
Gets The value of this Property if the datatype is a String-Long Map.
|
Map<String,String> |
getStringStringMapValue()
Gets The value of this Property if the datatype is a String-String Map.
|
String |
getStringValue()
Gets The value of this Property if the datatype is a String.
|
String[] |
getStringValues()
Gets The value of this Property if the datatype is an array of Strings.
|
AttributeValue |
getValue()
Gets the value represented as an AttributeValue.
|
ClassObject |
getValueClassObject()
Gets the ClassObject of the value of this SimpleProperty,
if it is a SimpleObject or SimpleObject array type.
|
Long |
getValueClassObjectId()
Gets The ClassObject ID of the value of this SimpleProperty,
if it is a SimpleObject or SimpleObject array type.
|
int |
getValueDataType()
Gets The datatype of the value of this SimpleProperty.
|
boolean |
hasNameAttribute()
Returns true if this object is an instance of a class
that has a NAME attribute, and false otherwise.
|
boolean |
isDedicated()
Returns true if the value of this property is dedicated to this property, meaning
it will be freed when the property is freed.
|
protected void |
preFree(LibraryObjectDefinition lodef)
Extensibility point to perform actions prior to the
permanent deletion ("free") of a object.
|
void |
removeFromStringArray(String val)
Removes a String value from the String array.
|
void |
removeFromStringArray(String[] val)
Removes String values from the String array.
|
void |
setValue(AttributeValue val)
Updates the property value.
|
free, handleCreate, isValidEventType
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, hasPropertyBundleAttribute, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postCreate, postEvent, postEvent, postFree, postUpdate, preCreate, prePostAuditEvent, preUpdate, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String REFERENCINGOBJECTID_ATTRIBUTE
public static final String REFERENCINGCLASSOBJECTID_ATTRIBUTE
public static final String DEDICATED_ATTRIBUTE
public static final String VALUEDATATYPE_ATTRIBUTE
public static final String VALUECLASSOBJECTID_ATTRIBUTE
public static final String STRINGVALUE_ATTRIBUTE
public static final String LONGVALUE_ATTRIBUTE
public static final String DOUBLEVALUE_ATTRIBUTE
public static final String STRINGVALUES_ATTRIBUTE
public static final String LONGVALUES_ATTRIBUTE
public static final String DOUBLEVALUES_ATTRIBUTE
public static final String STRINGSTRINGMAPVALUE_ATTRIBUTE
public static final String STRINGLONGMAPVALUE_ATTRIBUTE
public static final String STRINGDOUBLEMAPVALUE_ATTRIBUTE
public static final String LONGSTRINGMAPVALUE_ATTRIBUTE
public static final String LONGLONGMAPVALUE_ATTRIBUTE
protected SimpleProperty(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibrarySessionid
- object idclassId
- class iddata
- data componentIfsException
- if the operation failspublic boolean hasNameAttribute() throws IfsException
LibraryObject
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public Long getReferencingObjectId() throws IfsException
IfsException
- if the operation failspublic Long getReferencingClassObjectId() throws IfsException
IfsException
- if the operation failspublic boolean isDedicated() throws IfsException
IfsException
- if the operation fails.public int getValueDataType() throws IfsException
IfsException
- if the operation failspublic Long getValueClassObjectId() throws IfsException
IfsException
- if the operation failspublic String getStringValue() throws IfsException
IfsException
- if the operation failspublic Long getLongValue() throws IfsException
IfsException
- if the operation failspublic Double getDoubleValue() throws IfsException
IfsException
- if the operation failspublic String[] getStringValues() throws IfsException
IfsException
- if the operation failspublic Long[] getLongValues() throws IfsException
IfsException
- if the operation failspublic Double[] getDoubleValues() throws IfsException
IfsException
- if the operation failspublic Map<String,String> getStringStringMapValue() throws IfsException
IfsException
- if the operation failspublic Map<String,Long> getStringLongMapValue() throws IfsException
IfsException
- if the operation failspublic Map<String,Double> getStringDoubleMapValue() throws IfsException
IfsException
- if the operation failspublic Map<Long,String> getLongStringMapValue() throws IfsException
IfsException
- if the operation failspublic Map<Long,Long> getLongLongMapValue() throws IfsException
IfsException
- if the operation failspublic LibraryObject getReferencingObject() throws IfsException
IfsException
- if the operation failspublic ClassObject getValueClassObject() throws IfsException
IfsException
- if the operation failspublic AttributeValue getValue() throws IfsException
IfsException
- if the operation failspublic void addToStringArray(String val) throws IfsException
val
- the String to addIfsException
- if the operation failspublic void addToStringArray(String[] val) throws IfsException
val
- the Strings to addIfsException
- if the operation failspublic void removeFromStringArray(String val) throws IfsException
val
- the String to removeIfsException
- if the operation failspublic void removeFromStringArray(String[] val) throws IfsException
val
- the Strings to removeIfsException
- if the operation failspublic void setValue(AttributeValue val) throws IfsException
val
- the new valueIfsException
- if the operation failspublic static SimpleProperty[] deriveNewSimplePropertySet(LibraryObject refingObject, SimpleProperty[] originalProps, SimplePropertyDefinition[] propDefs) throws IfsException
refingObject
- the Referencing object (must be non-null)originalProps
- the original propertiesIfsException
- if the operation failsprotected void preFree(LibraryObjectDefinition lodef) throws IfsException
LibraryObject
This method is typically overridden by subclasses that
perform other operations prior to the target object
being freed in order to all delete or modify objects related
to the target object.
Subclasses are expected to invoke super.preFree
.
preFree
in class LibraryObject
lodef
- object definition used to hold options related to the free
operationIfsException
- if operation fails.Copyright © 2023. All rights reserved.