public interface ICustomPropertiesAccess extends ICockpitData
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCategoryID()
Returns the ID of the category that the object belongs to.
|
java.lang.String |
getCategoryLabel()
Returns the label of the category that the object belongs to.
|
java.lang.Long |
getDateTimeProperty_MilliSecondsSince_01_01_1970(java.lang.String propertyID)
Returns the date time in millisenconds since 1st January 1970.
|
java.lang.String |
getFileProperty(java.lang.String propertyID)
Returns a XML DocBook representation to access the file attribute.
|
java.lang.String |
getFileProperty(java.lang.String propertyID,
double width_mm,
double height_mm)
Returns a XML DocBook representation to access the file attribute.
|
java.util.List<java.lang.String> |
getFilePropertyAsBase64StringList(java.lang.String propertyID,
boolean breakLines)
Returns the content of a file as string list (Base64 encoded).
|
java.lang.String |
getFilePropertyAsFileName(java.lang.String propertyID)
Returns the local file name for a file attribute.
|
java.lang.String |
getFilePropertyAsFileName(java.lang.String propertyID,
java.lang.String fileNamePrefix)
Returns the local file name for a file attribute.
|
java.util.List<java.lang.String> |
getFilePropertyAsRawStringList(java.lang.String propertyID,
java.lang.String characterEncoding)
Returns the content of a file as string list.
|
java.util.List<java.lang.String> |
getFilePropertyAsStringList(java.lang.String propertyID,
java.lang.String characterEncoding)
Returns the content of a file as string list (html encoded).
|
java.lang.String |
getPropertyAsString(java.lang.String propertyID)
Returns a string representation of the property value.
|
java.util.List<java.lang.String> |
getPropertyAsStringArray(java.lang.String propertyID)
Deprecated.
|
java.util.List<java.lang.String> |
getPropertyAsStringList(java.lang.String propertyID)
Returns a list of strings representing the property value.
|
boolean |
hasCustomPropertyValues()
Checks whether this object has any custom properties with values.
|
boolean |
hasDefaultCategory()
Returns whether the object belongs to the default category or not.
|
boolean |
hasPropertyValue(java.lang.String propertyID)
Checks whether the object has a property with specified ID for which
a value is set.
|
IImageInfo |
readImageInfoOfFileProperty(java.lang.String propertyID)
Returns meta information regarding an image file stored in a custom
propery.
|
IRecord |
toRecord()
Converts this cockpit project data into a record.
|
getCommitVersion, getCreationDate_MilliSecondsSince_01_01_1970, getCreationDate, getCreator, getDateOfLastModification_MilliSecondsSince_01_01_1970, getDateOfLastModification, getDisplayName, getLastModifier, getLinkForShow, getModificationCount, getProjectUniqueIdentifier, getTypeID, getTypeName, getUniqueIdentifier, toRecordboolean hasCustomPropertyValues()
boolean hasPropertyValue(java.lang.String propertyID)
custom. followed by a name/ID which can be defined when
specifying the custom properties of a project.propertyID - The properties idjava.lang.String getPropertyAsString(java.lang.String propertyID)
propertyID - The properties id@Deprecated java.util.List<java.lang.String> getPropertyAsStringArray(java.lang.String propertyID)
getPropertyAsStringList(String)getPropertyAsString() when the text may
contain carriage return or line breaks and shall be splitted into
several string objects.propertyID - IThe properties idjava.util.List<java.lang.String> getPropertyAsStringList(java.lang.String propertyID)
getPropertyAsString() when the text may
contain carriage return or line breaks and shall be splitted into
several string objects.propertyID - The properties idjava.lang.String getFileProperty(java.lang.String propertyID)
propertyID - The properties idjava.lang.String getFileProperty(java.lang.String propertyID,
double width_mm,
double height_mm)
propertyID - The properties idwidth_mm - width in mm (0 = unspecified)height_mm - height in mm (0 = unspecified)java.lang.String getFilePropertyAsFileName(java.lang.String propertyID)
propertyID - The properties idjava.lang.String getFilePropertyAsFileName(java.lang.String propertyID,
java.lang.String fileNamePrefix)
propertyID - The properties idfileNamePrefix - prefix that is added to the file namejava.util.List<java.lang.String> getFilePropertyAsStringList(java.lang.String propertyID,
java.lang.String characterEncoding)
propertyID - The properties idcharacterEncoding - the encoding to be used when reading the
filejava.util.List<java.lang.String> getFilePropertyAsRawStringList(java.lang.String propertyID,
java.lang.String characterEncoding)
propertyID - The properties idcharacterEncoding - the encoding to be used when reading the
filejava.util.List<java.lang.String> getFilePropertyAsBase64StringList(java.lang.String propertyID,
boolean breakLines)
propertyID - The properties idbreakLines - true to add line breaksIImageInfo readImageInfoOfFileProperty(java.lang.String propertyID)
propertyID - The properties idimagefileName - the image file namejava.lang.Long getDateTimeProperty_MilliSecondsSince_01_01_1970(java.lang.String propertyID)
propertyID - The properties idjava.lang.String getCategoryID()
java.lang.String getCategoryLabel()
boolean hasDefaultCategory()
IRecord toRecord()
In addition to all fields documented at
ICockpitData.toRecord(), in the created record, the following
fields are filled accoring to the wrapped cockpit data:
IRecord.CATEGORY_ID_KEYIRecord.CUSTOM_KEY_PREFIX
IRecord.getAll(String) will return the value as list of
stringsIRecord.get(String) will return a
decimal string representing the miliseconds since 1970-01-01IRecord.getAll(String) will return the
file content as base64 encoded strings, IRecord.get(String)
with key "propertyID" + IRecord.FILE_NAME_POSTFIX will return
the file nameIRecord.get(String) will return the
value als stringtoRecord in interface ICockpitData