com.filenet.api.property
Interface Property
-
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- PropertyBinary, PropertyBinaryList, PropertyBoolean, PropertyBooleanList, PropertyContent, PropertyDateTime, PropertyDateTimeList, PropertyDependentObjectList, PropertyEngineObject, PropertyFloat64, PropertyFloat64List, PropertyId, PropertyIdList, PropertyIndependentObjectSet, PropertyInteger32, PropertyInteger32List, PropertyString, PropertyStringList
public interface Property extends java.io.SerializableRepresents the base interface for a property belonging to a Content Engine object.Propertyobjects allow you to access property values in an object'sPropertiescollection. EachPropertysubinterface represents a Content Engine property that holds a value of a specific data type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description BinaryListgetBinaryListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyBinaryListobject.byte[]getBinaryValue()Returns the value held by the Content Engine property represented by thisPropertyBinaryobject.BooleanListgetBooleanListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyBooleanListobject.java.lang.BooleangetBooleanValue()Returns the value held by the Content Engine property represented by thisPropertyBooleanobject.DateTimeListgetDateTimeListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyDateTimeListobject.java.util.DategetDateTimeValue()Returns the value held by the Content Engine property represented by thisPropertyDateTimeobject.DependentObjectListgetDependentObjectListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyDependentObjectListobject.EngineObjectgetEngineObjectValue()Returns the value held by the Content Engine property represented by thisPropertyEngineObjectobject.Float64ListgetFloat64ListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyFloat64Listobject.java.lang.DoublegetFloat64Value()Returns the value held by the Content Engine property represented by thisPropertyFloat64object.IdListgetIdListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyIdListobject.IdgetIdValue()Returns the value held by the Content Engine property represented by thisPropertyIdobject.IndependentObjectSetgetIndependentObjectSetValue()Returns the set of values held by the Content Engine property collection represented by thisPropertyIndependentObjectSetobject.java.io.InputStreamgetInputStreamValue()Returns the value held by the Content Engine property represented by thisPropertyContentobject.Integer32ListgetInteger32ListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyInteger32Listobject.java.lang.IntegergetInteger32Value()Returns the value held by the Content Engine property represented by thisPropertyInteger32object.java.lang.ObjectgetObjectValue()Returns the value held by the Content Engine property represented by thisPropertyobject.java.lang.StringgetPropertyName()Returns the name of the Content Engine property represented by thisPropertyobject.EngineRuntimeExceptiongetRetrievalErrorValue()Returns the error code held by thisPropertyobject when the Content Engine property that it represents cannot be accessed.PropertyStategetState()Returns aPropertyStateconstant that specifies the type of value held by thisPropertyobject as it relates to a particular Content Engine property.StringListgetStringListValue()Returns the list of values held by the Content Engine property collection represented by thisPropertyStringListobject.java.lang.StringgetStringValue()Returns the value held by the Content Engine property represented by thisPropertyStringobject.booleanisDirty()Specifies whether the value of the Content Engine property represented by thisPropertyobject has changed since it was last saved (true) or not (false).booleanisSettable()Specifies whether the value of the Content Engine property represented by thisPropertyobject can be set by an application (true) or not (false).voidsetObjectValue(java.lang.Object val)Sets the value of the Content Engine property represented by thisPropertyobject to the specifiedObject.
-
-
-
Method Detail
-
setObjectValue
void setObjectValue(java.lang.Object val)
Sets the value of the Content Engine property represented by thisPropertyobject to the specifiedObject.- Parameters:
val- AnObjectspecifying the new property value. Only the followingObjectsubclasses are allowed; each of which corresponds to the data type that a property represented by a particularPropertyobject type can hold:Boolean(PropertyBooleanvalue)byte(PropertyBinaryvalue)Date(PropertyDateTimevalue)Double(PropertyFloat64value)Id(PropertyIdvalue)Integer(PropertyInteger32value)String(PropertyStringvalue)InputStream(PropertyContentvalue)EngineObject(PropertyEngineObjectvalue)ObjectReference(PropertyEngineObjectvalue)BinaryList(PropertyBinaryListvalue)BooleanList(PropertyBooleanListvalue)DateTimeList(PropertyDateTimeListvalue)DependentObjectList(PropertyDependentObjectListvalue)Float64List(PropertyFloat64Listvalue)IdList(PropertyIdListvalue)IndependentObjectSet(PropertyIndependentObjectSetvalue)Integer32List(PropertyInteger32Listvalue)StringList(PropertyStringListvalue)
- Throws:
API_UNSUPPORTED_PROPERTY_TYPE- ifvalspecifies anullor an invalid object type.E_READ_ONLY- if an attempt is made to update a property that is not settable (itsProperty.isSettablemethod returnsfalse).
-
getObjectValue
java.lang.Object getObjectValue()
Returns the value held by the Content Engine property represented by thisPropertyobject. If the property holds an unevaluated object or a reference object, this method makes a round trip to the server to retrieve the object value.- Returns:
- An
Objectspecifying the property value.
-
getStringValue
java.lang.String getStringValue()
Returns the value held by the Content Engine property represented by thisPropertyStringobject.- Returns:
- A
Stringspecifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyString.
-
getDateTimeValue
java.util.Date getDateTimeValue()
Returns the value held by the Content Engine property represented by thisPropertyDateTimeobject.- Returns:
- A
Datespecifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyDateTime.
-
getInteger32Value
java.lang.Integer getInteger32Value()
Returns the value held by the Content Engine property represented by thisPropertyInteger32object.- Returns:
- An
Integerspecifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyInteger32.
-
getBooleanValue
java.lang.Boolean getBooleanValue()
Returns the value held by the Content Engine property represented by thisPropertyBooleanobject.- Returns:
- A
Booleanspecifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyBoolean.
-
getFloat64Value
java.lang.Double getFloat64Value()
Returns the value held by the Content Engine property represented by thisPropertyFloat64object.- Returns:
- A
Doublespecifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyFloat64.
-
getBinaryValue
byte[] getBinaryValue()
Returns the value held by the Content Engine property represented by thisPropertyBinaryobject.- Returns:
- A
bytearray specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyBinary.
-
getIdValue
Id getIdValue()
Returns the value held by the Content Engine property represented by thisPropertyIdobject.- Returns:
- An
Idobject specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyId.
-
getEngineObjectValue
EngineObject getEngineObjectValue()
Returns the value held by the Content Engine property represented by thisPropertyEngineObjectobject.- Returns:
- An
EngineObjectobject specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyEngineObject.
-
getDependentObjectListValue
DependentObjectList getDependentObjectListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDependentObjectListobject.- Returns:
- A
DependentObjectListobject specifying a collection ofDependentObjectobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyDependentObjectList.
-
getIndependentObjectSetValue
IndependentObjectSet getIndependentObjectSetValue()
Returns the set of values held by the Content Engine property collection represented by thisPropertyIndependentObjectSetobject.- Returns:
- A
IndependentObjectSetobject specifying a collection ofIndependentObjectobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyIndependentObjectSet.
-
getStringListValue
StringList getStringListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyStringListobject.- Returns:
- A
StringListobject specifying a collection ofStringobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyStringList.
-
getBooleanListValue
BooleanList getBooleanListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBooleanListobject.- Returns:
- A
BooleanListobject specifying a collection ofBooleanobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyBooleanList.
-
getInteger32ListValue
Integer32List getInteger32ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyInteger32Listobject.- Returns:
- An
Integer32Listobject specifying a collection ofIntegerobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyInteger32List.
-
getFloat64ListValue
Float64List getFloat64ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyFloat64Listobject.- Returns:
- A
Float64Listobject specifying a collection ofDoubleobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyInteger32List.
-
getDateTimeListValue
DateTimeList getDateTimeListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDateTimeListobject.- Returns:
- A
DateTimeListobject specifying a collection ofDateobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyDateTimeList.
-
getBinaryListValue
BinaryList getBinaryListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBinaryListobject.- Returns:
- A
BinaryListobject specifying a collection ofbytearrays. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyBinaryList.
-
getIdListValue
IdList getIdListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyIdListobject.- Returns:
- An
IdListobject specifying a collection ofIdobjects. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyIdList.
-
getInputStreamValue
java.io.InputStream getInputStreamValue()
Returns the value held by the Content Engine property represented by thisPropertyContentobject.- Returns:
- An
InputStreamobject specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE- if this method is called by aPropertyobject type other thanPropertyContent.
-
getRetrievalErrorValue
EngineRuntimeException getRetrievalErrorValue()
Returns the error code held by thisPropertyobject when the Content Engine property that it represents cannot be accessed.- Returns:
- An
EngineRuntimeExceptionobject specifying the error. If thePropertyobject holds a valid Content Engine property value, this method returnsnull.
-
getState
PropertyState getState()
Returns aPropertyStateconstant that specifies the type of value held by thisPropertyobject as it relates to a particular Content Engine property. Possible values are:NO_VALUE: Indicates that a Content Engine property is eithernull(if it has single cardinality) or refers to an empty collection (if it has list or enumeration cardinality).REFERENCE: Indicate that thisPropertyobject holds anObjectReferenceobject that specifies a reference to the object returned by a Content Engine property.RETRIEVAL_ERROR: Indicates that thisPropertyobject holds anEngineRuntimeExceptionobject representing an error has occurred during retrieval of a Content Engine property value.UNEVALUATED: Indicates that a Content Engine property returns an object whose value has not yet been determined.VALUE: Indicates that thisPropertyobject holds an object that specifies a valid value of a Content Engine property.
- Returns:
- A
PropertyStateconstant.
-
getPropertyName
java.lang.String getPropertyName()
Returns the name of the Content Engine property represented by thisPropertyobject.- Returns:
- A
Stringspecifying the property name.
-
isSettable
boolean isSettable()
Specifies whether the value of the Content Engine property represented by thisPropertyobject can be set by an application (true) or not (false).- Returns:
trueif the property is settable; otherwise, returnsfalse.
-
isDirty
boolean isDirty()
Specifies whether the value of the Content Engine property represented by thisPropertyobject has changed since it was last saved (true) or not (false).- Returns:
trueif the value of the property has changed; otherwise, returnsfalse.
-
-