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.Serializable
Represents the base interface for a property belonging to a Content Engine object.Property
objects allow you to access property values in an object'sProperties
collection. EachProperty
subinterface represents a Content Engine property that holds a value of a specific data type.
-
-
Method Summary
Methods Modifier and Type Method and Description BinaryList
getBinaryListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBinaryList
object.byte[]
getBinaryValue()
Returns the value held by the Content Engine property represented by thisPropertyBinary
object.BooleanList
getBooleanListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBooleanList
object.java.lang.Boolean
getBooleanValue()
Returns the value held by the Content Engine property represented by thisPropertyBoolean
object.DateTimeList
getDateTimeListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDateTimeList
object.java.util.Date
getDateTimeValue()
Returns the value held by the Content Engine property represented by thisPropertyDateTime
object.DependentObjectList
getDependentObjectListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDependentObjectList
object.EngineObject
getEngineObjectValue()
Returns the value held by the Content Engine property represented by thisPropertyEngineObject
object.Float64List
getFloat64ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyFloat64List
object.java.lang.Double
getFloat64Value()
Returns the value held by the Content Engine property represented by thisPropertyFloat64
object.IdList
getIdListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyIdList
object.Id
getIdValue()
Returns the value held by the Content Engine property represented by thisPropertyId
object.IndependentObjectSet
getIndependentObjectSetValue()
Returns the set of values held by the Content Engine property collection represented by thisPropertyIndependentObjectSet
object.java.io.InputStream
getInputStreamValue()
Returns the value held by the Content Engine property represented by thisPropertyContent
object.Integer32List
getInteger32ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyInteger32List
object.java.lang.Integer
getInteger32Value()
Returns the value held by the Content Engine property represented by thisPropertyInteger32
object.java.lang.Object
getObjectValue()
Returns the value held by the Content Engine property represented by thisProperty
object.java.lang.String
getPropertyName()
Returns the name of the Content Engine property represented by thisProperty
object.EngineRuntimeException
getRetrievalErrorValue()
Returns the error code held by thisProperty
object when the Content Engine property that it represents cannot be accessed.PropertyState
getState()
Returns aPropertyState
constant that specifies the type of value held by thisProperty
object as it relates to a particular Content Engine property.StringList
getStringListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyStringList
object.java.lang.String
getStringValue()
Returns the value held by the Content Engine property represented by thisPropertyString
object.boolean
isDirty()
Specifies whether the value of the Content Engine property represented by thisProperty
object has changed since it was last saved (true
) or not (false
).boolean
isSettable()
Specifies whether the value of the Content Engine property represented by thisProperty
object can be set by an application (true
) or not (false
).void
setObjectValue(java.lang.Object val)
Sets the value of the Content Engine property represented by thisProperty
object to the specifiedObject
.
-
-
-
Method Detail
-
setObjectValue
void setObjectValue(java.lang.Object val)
Sets the value of the Content Engine property represented by thisProperty
object to the specifiedObject
.- Parameters:
val
- AnObject
specifying the new property value. Only the followingObject
subclasses are allowed; each of which corresponds to the data type that a property represented by a particularProperty
object type can hold:Boolean
(PropertyBoolean
value)byte
(PropertyBinary
value)Date
(PropertyDateTime
value)Double
(PropertyFloat64
value)Id
(PropertyId
value)Integer
(PropertyInteger32
value)String
(PropertyString
value)InputStream
(PropertyContent
value)EngineObject
(PropertyEngineObject
value)ObjectReference
(PropertyEngineObject
value)BinaryList
(PropertyBinaryList
value)BooleanList
(PropertyBooleanList
value)DateTimeList
(PropertyDateTimeList
value)DependentObjectList
(PropertyDependentObjectList
value)Float64List
(PropertyFloat64List
value)IdList
(PropertyIdList
value)IndependentObjectSet
(PropertyIndependentObjectSet
value)Integer32List
(PropertyInteger32List
value)StringList
(PropertyStringList
value)
- Throws:
API_UNSUPPORTED_PROPERTY_TYPE
- ifval
specifies anull
or an invalid object type.E_READ_ONLY
- if an attempt is made to update a property that is not settable (itsProperty.isSettable
method returnsfalse
).
-
getObjectValue
java.lang.Object getObjectValue()
Returns the value held by the Content Engine property represented by thisProperty
object. 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
Object
specifying the property value.
-
getStringValue
java.lang.String getStringValue()
Returns the value held by the Content Engine property represented by thisPropertyString
object.- Returns:
- A
String
specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyString
.
-
getDateTimeValue
java.util.Date getDateTimeValue()
Returns the value held by the Content Engine property represented by thisPropertyDateTime
object.- Returns:
- A
Date
specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyDateTime
.
-
getInteger32Value
java.lang.Integer getInteger32Value()
Returns the value held by the Content Engine property represented by thisPropertyInteger32
object.- Returns:
- An
Integer
specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyInteger32
.
-
getBooleanValue
java.lang.Boolean getBooleanValue()
Returns the value held by the Content Engine property represented by thisPropertyBoolean
object.- Returns:
- A
Boolean
specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyBoolean
.
-
getFloat64Value
java.lang.Double getFloat64Value()
Returns the value held by the Content Engine property represented by thisPropertyFloat64
object.- Returns:
- A
Double
specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyFloat64
.
-
getBinaryValue
byte[] getBinaryValue()
Returns the value held by the Content Engine property represented by thisPropertyBinary
object.- Returns:
- A
byte
array specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyBinary
.
-
getIdValue
Id getIdValue()
Returns the value held by the Content Engine property represented by thisPropertyId
object.- Returns:
- An
Id
object specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyId
.
-
getEngineObjectValue
EngineObject getEngineObjectValue()
Returns the value held by the Content Engine property represented by thisPropertyEngineObject
object.- Returns:
- An
EngineObject
object specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyEngineObject
.
-
getDependentObjectListValue
DependentObjectList getDependentObjectListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDependentObjectList
object.- Returns:
- A
DependentObjectList
object specifying a collection ofDependentObject
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyDependentObjectList
.
-
getIndependentObjectSetValue
IndependentObjectSet getIndependentObjectSetValue()
Returns the set of values held by the Content Engine property collection represented by thisPropertyIndependentObjectSet
object.- Returns:
- A
IndependentObjectSet
object specifying a collection ofIndependentObject
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyIndependentObjectSet
.
-
getStringListValue
StringList getStringListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyStringList
object.- Returns:
- A
StringList
object specifying a collection ofString
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyStringList
.
-
getBooleanListValue
BooleanList getBooleanListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBooleanList
object.- Returns:
- A
BooleanList
object specifying a collection ofBoolean
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyBooleanList
.
-
getInteger32ListValue
Integer32List getInteger32ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyInteger32List
object.- Returns:
- An
Integer32List
object specifying a collection ofInteger
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyInteger32List
.
-
getFloat64ListValue
Float64List getFloat64ListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyFloat64List
object.- Returns:
- A
Float64List
object specifying a collection ofDouble
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyInteger32List
.
-
getDateTimeListValue
DateTimeList getDateTimeListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyDateTimeList
object.- Returns:
- A
DateTimeList
object specifying a collection ofDate
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyDateTimeList
.
-
getBinaryListValue
BinaryList getBinaryListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyBinaryList
object.- Returns:
- A
BinaryList
object specifying a collection ofbyte
arrays. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyBinaryList
.
-
getIdListValue
IdList getIdListValue()
Returns the list of values held by the Content Engine property collection represented by thisPropertyIdList
object.- Returns:
- An
IdList
object specifying a collection ofId
objects. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyIdList
.
-
getInputStreamValue
java.io.InputStream getInputStreamValue()
Returns the value held by the Content Engine property represented by thisPropertyContent
object.- Returns:
- An
InputStream
object specifying the property value. - Throws:
API_INVALID_PROPERTY_TYPE
- if this method is called by aProperty
object type other thanPropertyContent
.
-
getRetrievalErrorValue
EngineRuntimeException getRetrievalErrorValue()
Returns the error code held by thisProperty
object when the Content Engine property that it represents cannot be accessed.- Returns:
- An
EngineRuntimeException
object specifying the error. If theProperty
object holds a valid Content Engine property value, this method returnsnull
.
-
getState
PropertyState getState()
Returns aPropertyState
constant that specifies the type of value held by thisProperty
object 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 thisProperty
object holds anObjectReference
object that specifies a reference to the object returned by a Content Engine property.RETRIEVAL_ERROR
: Indicates that thisProperty
object holds anEngineRuntimeException
object 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 thisProperty
object holds an object that specifies a valid value of a Content Engine property.
- Returns:
- A
PropertyState
constant.
-
getPropertyName
java.lang.String getPropertyName()
Returns the name of the Content Engine property represented by thisProperty
object.- Returns:
- A
String
specifying the property name.
-
isSettable
boolean isSettable()
Specifies whether the value of the Content Engine property represented by thisProperty
object can be set by an application (true
) or not (false
).- Returns:
true
if the property is settable; otherwise, returnsfalse
.
-
isDirty
boolean isDirty()
Specifies whether the value of the Content Engine property represented by thisProperty
object has changed since it was last saved (true
) or not (false
).- Returns:
true
if the value of the property has changed; otherwise, returnsfalse
.
-
-