public interface IGenericModuleData
extends com.arcway.cockpit.modulelib2.client.docgen.provider.interfaces.IModuleData, com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess, com.arcway.cockpit.docgen.provider.interfaces.IGraphic
IGenericModuleData object allows to read attribute values of an item from
a ARCWAY Cockpit module that is based on the Generic Module.
Starting with this object, you can get references to its parent object, child objects and
related objects.Item type constant: "gm." + [module id] + "." + [object type id] (module id and object type id are taken from the generic module specification) Attention: This type implements the IGraphic interface, but the methods contained in this interface may only be used in a report template, if a graphical representation is specified for the object type.
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends IGenericModuleData> |
getAncestorObjects()
Returns the ancestor objects of this object, i.e. the parent object and its parents recursively.
|
java.util.List<java.lang.String> |
getAttribute_asParagraphList(java.lang.String attributeID)
Returns the value of the specified attribute as List of String.
|
java.lang.String |
getAttribute_asSingleLine(java.lang.String attributeID)
Returns the value of the specified attribute as String.
|
java.lang.Long |
getAttribute_asTimestamp_MilliSecondsSince_01_01_1970(java.lang.String attributeID)
Returns the value of the specified attribute as time stamp.
|
java.lang.Object |
getAttribute(java.lang.String attributeID)
Returns the value of the specified attribute.
|
java.util.List<? extends IGenericModuleData> |
getChildObjects(java.lang.String objectType)
Returns the direct child objects of the given type of this object.
|
java.util.List<? extends IGenericModuleData> |
getChildObjects(java.lang.String objectType,
java.lang.String attributeToSortBy)
Returns the direct child objects of the given type of this object.
|
java.util.List<? extends IGenericModuleData> |
getChildObjectsOfTypeRank(int typeRank)
Returns the direct child objects of the given type rank of this object.
|
java.util.List<? extends IGenericModuleData> |
getChildObjectsWithCategory(java.lang.String objectType,
java.lang.String categoryID)
Returns the direct child objects of the given type of this object that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getChildObjectsWithCategory(java.lang.String objectType,
java.lang.String categoryID,
java.lang.String attributeToSortBy)
Returns the direct child objects of the given type of this object that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getChildObjectsWithDefaultCategory(java.lang.String objectType)
Returns the direct child objects of the given type of this object that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getChildObjectsWithDefaultCategory(java.lang.String objectType,
java.lang.String attributeToSortBy)
Returns the direct child objects of the given type of this object that belong to the default category.
|
java.lang.String |
getChildrenIDPrefix(java.lang.String childObjectTypeID)
Returns the prefix that will be used for the id of a new child item of the specified type.
|
java.util.List<? extends com.arcway.cockpit.docgen.provider.interfaces.IModelElement> |
getLinkedModelElements()
Returns the linked model elements.
|
java.lang.String |
getObjectType()
Returns the id of the object type of this object.
|
IGenericModuleData |
getParentObject()
Returns the parent object of this object.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjects(java.lang.String relationTypeID)
Returns the related linkable objects for this object based on the specified relation type.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjects(java.lang.String relationTypeID,
java.lang.String attributeToSortBy)
Returns the related linkable objects for this object based on the specified relation type.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjectsWithCategory(java.lang.String relationTypeID,
java.lang.String categoryID)
Returns the related linkable objects for this object based on the specified relation type and that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjectsWithCategory(java.lang.String relationTypeID,
java.lang.String categoryID,
java.lang.String attributeToSortBy)
Returns the related linkable objects for this object based on the specified relation type and that belong to the sepcified category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjectsWithDefaultCategory(java.lang.String relationTypeID)
Returns the related linkable objects for this object based on the specified relation type and that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedLOObjectsWithDefaultCategory(java.lang.String relationTypeID,
java.lang.String attributeToSortBy)
Returns the related linkable objects for this object based on the specified relation type and that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjects(java.lang.String relationTypeID)
Returns the related module data objects for this object based on the specified relation type.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjects(java.lang.String relationTypeID,
java.lang.String attributeToSortBy)
Returns the related module data objects for this object based on the specified relation type.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjectsWithCategory(java.lang.String relationTypeID,
java.lang.String categoryID)
Returns the related module data objects for this object based on the specified relation type and that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjectsWithCategory(java.lang.String relationTypeID,
java.lang.String categoryID,
java.lang.String attributeToSortBy)
Returns the related module data objects for this object based on the specified relation type and that belong to the specified category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjectsWithDefaultCategory(java.lang.String relationTypeID)
Returns the related module data objects for this object based on the specified relation type and that belong to the default category.
|
java.util.List<? extends IGenericModuleData> |
getRelatedMDObjectsWithDefaultCategory(java.lang.String relationTypeID,
java.lang.String attributeToSortBy)
Returns the related module data objects for this object based on the specified relation type and that belong to the default category.
|
java.lang.String |
getUniqueIdentifier()
Returns a unique identifier that uniquely identifies this object
within its project.
|
boolean |
isLinkedToAnyModelElement()
Whether this item is linked to any model element.
|
com.arcway.cockpit.docgen.provider.interfaces.IRecord |
toRecord()
Converts this generic module data into a record.
|
getImage, getPNGFile, getSVGFile, getWMFFilegetCategoryID, getCategoryLabel, getDateTimeProperty_MilliSecondsSince_01_01_1970, getFileProperty, getFileProperty, getFilePropertyAsBase64StringList, getFilePropertyAsFileName, getFilePropertyAsFileName, getFilePropertyAsRawStringList, getFilePropertyAsStringList, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringList, hasCustomPropertyValues, hasDefaultCategory, hasPropertyValue, readImageInfoOfFilePropertygetCommitVersion, getCreationDate_MilliSecondsSince_01_01_1970, getCreationDate, getCreator, getDateOfLastModification_MilliSecondsSince_01_01_1970, getDateOfLastModification, getDisplayName, getLastModifier, getModificationCount, getProjectUniqueIdentifier, getTypeID, getTypeName, toRecordjava.lang.String getUniqueIdentifier()
getUniqueIdentifier in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatajava.lang.String getObjectType()
java.lang.Object getAttribute(java.lang.String attributeID)
The property is returned either as String or List of Strings, depending on whether it comprises of multiple lines or not.
attributeID - the attributeIDjava.lang.String getAttribute_asSingleLine(java.lang.String attributeID)
attributeID - the attributeIDjava.util.List<java.lang.String> getAttribute_asParagraphList(java.lang.String attributeID)
attributeID - the attributeIDjava.lang.Long getAttribute_asTimestamp_MilliSecondsSince_01_01_1970(java.lang.String attributeID)
Only for attributes of type Date or DateTime.
attributeID - the attributeIDIGenericModuleData getParentObject()
java.util.List<? extends IGenericModuleData> getChildObjects(java.lang.String objectType)
The children are in natural order.
objectType - the object typejava.util.List<? extends IGenericModuleData> getChildObjectsOfTypeRank(int typeRank)
The children are in natural order.
typeRank - the type rank of the objectsjava.util.List<? extends IGenericModuleData> getChildObjectsWithCategory(java.lang.String objectType, java.lang.String categoryID)
The children are in natural order.
objectType - the object typecategoryID - the category IDjava.util.List<? extends IGenericModuleData> getChildObjectsWithDefaultCategory(java.lang.String objectType)
The children are in natural order.
objectType - the object typejava.util.List<? extends IGenericModuleData> getChildObjects(java.lang.String objectType, java.lang.String attributeToSortBy)
The children are sorted by the specified attribute's value.
objectType - the object typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getChildObjectsWithCategory(java.lang.String objectType, java.lang.String categoryID, java.lang.String attributeToSortBy)
The children are sorted by the specified attribute's value.
objectType - the object typecategoryID - the category IDattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getChildObjectsWithDefaultCategory(java.lang.String objectType, java.lang.String attributeToSortBy)
The children are sorted by the specified attribute's value.
objectType - the object typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getAncestorObjects()
java.util.List<? extends IGenericModuleData> getRelatedLOObjects(java.lang.String relationTypeID)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
relationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedLOObjectsWithCategory(java.lang.String relationTypeID, java.lang.String categoryID)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
categoryID - the category IDrelationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedLOObjectsWithDefaultCategory(java.lang.String relationTypeID)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
relationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedLOObjects(java.lang.String relationTypeID, java.lang.String attributeToSortBy)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
The returned linkable objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getRelatedLOObjectsWithCategory(java.lang.String relationTypeID, java.lang.String categoryID, java.lang.String attributeToSortBy)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
The returned linkable objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typecategoryID - the category IDattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getRelatedLOObjectsWithDefaultCategory(java.lang.String relationTypeID, java.lang.String attributeToSortBy)
(The "linkable object" relation participant is the second specified relation participant of a module data relation type.)
The returned linkable objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getRelatedMDObjects(java.lang.String relationTypeID)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
relationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedMDObjectsWithCategory(java.lang.String relationTypeID, java.lang.String categoryID)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
categoryID - the category IDrelationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedMDObjectsWithDefaultCategory(java.lang.String relationTypeID)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
relationTypeID - the id of the relation typejava.util.List<? extends IGenericModuleData> getRelatedMDObjects(java.lang.String relationTypeID, java.lang.String attributeToSortBy)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
The returned module data objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getRelatedMDObjectsWithCategory(java.lang.String relationTypeID, java.lang.String categoryID, java.lang.String attributeToSortBy)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
The returned module data objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typecategoryID - the category IDattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)java.util.List<? extends IGenericModuleData> getRelatedMDObjectsWithDefaultCategory(java.lang.String relationTypeID, java.lang.String attributeToSortBy)
(The "module data" relation participant is the first specified relation participant of a module data relation type.)
The returned module data objects are sorted by the specified attribute's value.
relationTypeID - the id of the relation typeattributeToSortBy - the id attribute to sort by (may be a fix attribute or a custom property)boolean isLinkedToAnyModelElement()
java.util.List<? extends com.arcway.cockpit.docgen.provider.interfaces.IModelElement> getLinkedModelElements()
java.lang.String getChildrenIDPrefix(java.lang.String childObjectTypeID)
childObjectTypeID - com.arcway.cockpit.docgen.provider.interfaces.IRecord toRecord()
In addition to all fields documented at ICustomPropertiesAccess.toRecord(), in
the created record, the following fields are filled accoring to the wrapped cockpit data:
IRecord.OBJECT_TYPE_KEYtoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatatoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess