com.ibm.jarm.api.property
Interface RMProperty
-
public interface RMPropertyRepresents a single property value that is a member of aRMPropertiescollection.A
RMPropertyinstance can only be acquired as a member of its parentRMPropertiescollection.A new
RMPropertyinstance is created using theRMProperties.addmethod or one of the variousRMProperties.putXXXValue()methods.A existing
RMPropertyinstance can be removed from its corresponding parent collection using theRMProperties.removemethod.
-
-
Method Summary
Methods Modifier and Type Method and Description java.util.List<byte[]>getBinaryListValue()Returns the value of aRMPropertyof data typeDataType.Binaryand cardinality multi-valued.byte[]getBinaryValue()Returns the value of aRMPropertyof data typeDataType.Binaryand cardinality single-valued.java.util.List<java.lang.Boolean>getBooleanListValue()Returns the value of aRMPropertyof data typeDataType.Booleanand cardinality multi-valued.java.lang.BooleangetBooleanValue()Returns the value of aRMPropertyof data typeDataType.Booleanand cardinality single-valued.RMCardinalitygetCardinality()Returns theCardinalitydefined for thisRMPropertyinstance.DataTypegetDataType()Returns theDataTypedefined for thisRMPropertyinstance.java.util.List<java.util.Date>getDateTimeListValue()Returns the value of aRMPropertyof data typeDataType.DateTimeand cardinality multi-valued.java.util.DategetDateTimeValue()Returns the value of aRMPropertyof data typeDataType.DateTimeand cardinality single-valued.java.util.List<java.lang.Double>getDoubleListValue()Returns the value of aRMPropertyof data typeDataType.Doubleand cardinality multi-valued.java.lang.DoublegetDoubleValue()Returns the value of aRMPropertyof data typeDataType.Doubleand cardinality single-valued.java.util.List<java.lang.String>getGuidListValue()Returns the value of aRMPropertyof data typeDataType.Guidand cardinality multi-valued.java.lang.StringgetGuidValue()Returns the value of aRMPropertyof data typeDataType.Guidand cardinality single-valued.java.util.List<java.lang.Integer>getIntegerListValue()Returns the value of aRMPropertyof data typeDataType.Integerand cardinality multi-valued.java.lang.IntegergetIntegerValue()Returns the value of aRMPropertyof data typeDataType.Integerand cardinality single-valued.java.util.List<java.lang.Object>getObjectListValue()Returns the value of aRMPropertyof data typeDataType.Objectand cardinality multi-valued.java.lang.ObjectgetObjectValue()Returns the value of aRMPropertyof data typeDataType.Objectand cardinality single-valued.java.lang.ObjectgetRawObjectValue()Returns the raw value of aRMPropertyinstance.java.util.List<java.lang.String>getStringListValue()Returns the value of aRMPropertyof data typeDataType.Stringand cardinality multi-valued.java.lang.StringgetStringValue()Returns the value of aRMPropertyof data typeDataType.Stringand cardinality single-valued.java.lang.StringgetSymbolicName()Returns the symbolic name of the property.booleanisDirty()Indicates if the value of this property has been modified since the last time that its corresponding repository entity was saved.booleanisSettable()Indicates whether the value of this property can be set.voidsetBinaryValue(byte[] value)Sets the value of aRMPropertyinstance whose data type isDataType.Binary.voidsetBinaryValue(java.util.List<byte[]> values)Sets the value of aRMPropertyinstance whose data type isDataType.Binaryand whose cardinality is multi-valued.voidsetBooleanValue(java.lang.Boolean value)Sets the value of aRMPropertyinstance whose data type isDataType.Boolean.voidsetBooleanValue(java.util.List<java.lang.Boolean> values)Sets the value of aRMPropertyinstance whose data type isDataType.Booleanand whose cardinality is multi-valued.voidsetDateTimeValue(java.util.Date value)Sets the value of aRMPropertyinstance whose data type isDataType.DateTime.voidsetDateTimeValue(java.util.List<java.util.Date> values)Sets the value of aRMPropertyinstance whose data type isDataType.DateTimeand whose cardinality is multi-valued.voidsetDoubleValue(java.lang.Double value)Sets the value of aRMPropertyinstance whose data type isDataType.Double.voidsetDoubleValue(java.util.List<java.lang.Double> value)Sets the value of aRMPropertyinstance whose data type isDataType.Doubleand whose cardinality is multi-valued.voidsetGuidValue(java.util.List<java.lang.String> values)Sets the value of aRMPropertyinstance whose data type isDataType.Guidand whose cardinality is multi-valued.voidsetGuidValue(java.lang.String value)Sets the value of aRMPropertyinstance whose data type isDataType.Guid.voidsetIntegerValue(java.lang.Integer value)Sets the value of aRMPropertyinstance whose data type isDataType.Integer.voidsetIntegerValue(java.util.List<java.lang.Integer> value)Sets the value of aRMPropertyinstance whose data type isDataType.Integerand whose cardinality is multi-valued.voidsetObjectValue(java.util.List<java.lang.Object> values)Sets the value of aRMPropertyinstance whose data type isDataType.Objectand whose cardinality is multi-valued.voidsetObjectValue(java.lang.Object value)Sets the value of aRMPropertyinstance whose data type isDataType.Object.voidsetStringValue(java.util.List<java.lang.String> values)Sets the value of aRMPropertyinstance whose data type isDataType.Stringand whose cardinality is multi-valued.voidsetStringValue(java.lang.String value)Sets the value of aRMPropertyinstance whose data type isDataType.String.
-
-
-
Method Detail
-
getSymbolicName
java.lang.String getSymbolicName()
Returns the symbolic name of the property.- Returns:
- A
Stringvalue.
-
getDataType
DataType getDataType()
Returns theDataTypedefined for thisRMPropertyinstance.- Returns:
- A
DataTypevalue.
-
getCardinality
RMCardinality getCardinality()
Returns theCardinalitydefined for thisRMPropertyinstance.- Returns:
- a
Cardinalityvalue.
-
isDirty
boolean isDirty()
Indicates if the value of this property has been modified since the last time that its corresponding repository entity was saved.- Returns:
trueif the property has been modified,falseotherwise.
-
isSettable
boolean isSettable()
Indicates whether the value of this property can be set.- Returns:
trueif the property can be set,falseotherwise.
-
setBinaryValue
void setBinaryValue(byte[] value)
Sets the value of aRMPropertyinstance whose data type isDataType.Binary. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- abyte[]. Can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setBinaryValue
void setBinaryValue(java.util.List<byte[]> values)
Sets the value of aRMPropertyinstance whose data type isDataType.Binaryand whose cardinality is multi-valued.- Parameters:
values- aList<byte[]>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setBooleanValue
void setBooleanValue(java.lang.Boolean value)
Sets the value of aRMPropertyinstance whose data type isDataType.Boolean. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- aBoolean. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setBooleanValue
void setBooleanValue(java.util.List<java.lang.Boolean> values)
Sets the value of aRMPropertyinstance whose data type isDataType.Booleanand whose cardinality is multi-valued.- Parameters:
values- aList<Boolean>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setDateTimeValue
void setDateTimeValue(java.util.Date value)
Sets the value of aRMPropertyinstance whose data type isDataType.DateTime. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- aDate. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setDateTimeValue
void setDateTimeValue(java.util.List<java.util.Date> values)
Sets the value of aRMPropertyinstance whose data type isDataType.DateTimeand whose cardinality is multi-valued.- Parameters:
values- aList<Date>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setDoubleValue
void setDoubleValue(java.lang.Double value)
Sets the value of aRMPropertyinstance whose data type isDataType.Double. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- aDouble. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setDoubleValue
void setDoubleValue(java.util.List<java.lang.Double> value)
Sets the value of aRMPropertyinstance whose data type isDataType.Doubleand whose cardinality is multi-valued.- Parameters:
value- aList<Double>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setGuidValue
void setGuidValue(java.lang.String value)
Sets the value of aRMPropertyinstance whose data type isDataType.Guid. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- a GuidString. Can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setGuidValue
void setGuidValue(java.util.List<java.lang.String> values)
Sets the value of aRMPropertyinstance whose data type isDataType.Guidand whose cardinality is multi-valued.- Parameters:
values- a GuidList<String>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setIntegerValue
void setIntegerValue(java.lang.Integer value)
Sets the value of aRMPropertyinstance whose data type isDataType.Integer. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- aInteger. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setIntegerValue
void setIntegerValue(java.util.List<java.lang.Integer> value)
Sets the value of aRMPropertyinstance whose data type isDataType.Integerand whose cardinality is multi-valued.- Parameters:
value- aList<Integer>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setObjectValue
void setObjectValue(java.lang.Object value)
Sets the value of aRMPropertyinstance whose data type isDataType.Object. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- anObject. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setObjectValue
void setObjectValue(java.util.List<java.lang.Object> values)
Sets the value of aRMPropertyinstance whose data type isDataType.Objectand whose cardinality is multi-valued.This method is NOT supported for P8 Content Engine repositories.
- Parameters:
values- aList<Object>. This entry can benullor empty.- Throws:
API_OPERATION_NOT_SUPPORTED- this method is NOT supported for P8 Content Engine repositories.
-
setStringValue
void setStringValue(java.lang.String value)
Sets the value of aRMPropertyinstance whose data type isDataType.String. This method is applicable to a property of single-valued cardinality or a multi-valued property whose value contains a single member.- Parameters:
value- aString. This entry can benull.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
setStringValue
void setStringValue(java.util.List<java.lang.String> values)
Sets the value of aRMPropertyinstance whose data type isDataType.Stringand whose cardinality is multi-valued.- Parameters:
values- aList<String>. This entry can benullor empty.- Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.RAL_PROPERTY_SET_ERROR- for any value handling error.
-
getBinaryValue
byte[] getBinaryValue()
Returns the value of aRMPropertyof data typeDataType.Binaryand cardinality single-valued.- Returns:
- A
byte[]. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getBinaryListValue
java.util.List<byte[]> getBinaryListValue()
Returns the value of aRMPropertyof data typeDataType.Binaryand cardinality multi-valued.- Returns:
- A
List<byte[]>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getBooleanValue
java.lang.Boolean getBooleanValue()
Returns the value of aRMPropertyof data typeDataType.Booleanand cardinality single-valued.- Returns:
- A
Boolean. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getBooleanListValue
java.util.List<java.lang.Boolean> getBooleanListValue()
Returns the value of aRMPropertyof data typeDataType.Booleanand cardinality multi-valued.- Returns:
- A
List<Boolean>. This entry can benull.
-
getDateTimeValue
java.util.Date getDateTimeValue()
Returns the value of aRMPropertyof data typeDataType.DateTimeand cardinality single-valued.- Returns:
- A
Date. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getDateTimeListValue
java.util.List<java.util.Date> getDateTimeListValue()
Returns the value of aRMPropertyof data typeDataType.DateTimeand cardinality multi-valued.- Returns:
- A
List<Date>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getDoubleValue
java.lang.Double getDoubleValue()
Returns the value of aRMPropertyof data typeDataType.Doubleand cardinality single-valued.- Returns:
- A
Double. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getDoubleListValue
java.util.List<java.lang.Double> getDoubleListValue()
Returns the value of aRMPropertyof data typeDataType.Doubleand cardinality multi-valued.- Returns:
- A
List<Double>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getGuidValue
java.lang.String getGuidValue()
Returns the value of aRMPropertyof data typeDataType.Guidand cardinality single-valued.- Returns:
- A
String. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getGuidListValue
java.util.List<java.lang.String> getGuidListValue()
Returns the value of aRMPropertyof data typeDataType.Guidand cardinality multi-valued.- Returns:
- A
List<String>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getIntegerValue
java.lang.Integer getIntegerValue()
Returns the value of aRMPropertyof data typeDataType.Integerand cardinality single-valued.- Returns:
- An
Integer. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getIntegerListValue
java.util.List<java.lang.Integer> getIntegerListValue()
Returns the value of aRMPropertyof data typeDataType.Integerand cardinality multi-valued.- Returns:
- A
List<Integer>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getObjectValue
java.lang.Object getObjectValue()
Returns the value of aRMPropertyof data typeDataType.Objectand cardinality single-valued. Note that an attempt is made to resolve a non-null object value into the appropriate JARM type if possible. This process can result in additional round trips to the repository. Alternatively, thegetRawObjectValue()method can be used to avoid any background round trip activity.- Returns:
- An
Object. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getRawObjectValue
java.lang.Object getRawObjectValue()
Returns the raw value of aRMPropertyinstance.- Returns:
- An
Object. This entry can benull.
-
getObjectListValue
java.util.List<java.lang.Object> getObjectListValue()
Returns the value of aRMPropertyof data typeDataType.Objectand cardinality multi-valued.- Returns:
- A
List<Object>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
getStringValue
java.lang.String getStringValue()
Returns the value of aRMPropertyof data typeDataType.Stringand cardinality single-valued.As a convenience, this method will attempt to return a string-version of a non-
DataType.String-type scalar property when possible.- Returns:
- A
String. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if property is not single-valued or not easily represented as a String type.
-
getStringListValue
java.util.List<java.lang.String> getStringListValue()
Returns the value of aRMPropertyof data typeDataType.Stringand cardinality multi-valued.- Returns:
- A
List<String>. This entry can benull. - Throws:
API_INVALID_PROPERTY_DATATYPE- if thisRMPropertydoes not support this data type.
-
-