Package mc.core.model.base
Interface ICollectionManaged
- All Superinterfaces:
IBaseEntity,ICoreEntity,IEntity,Serializable
- All Known Implementing Classes:
Asset,Attribute,ImportProfile,NavigationHrc,Project,PublicationProfile,Reporting,Unit
Interface to signal that instances of implementing classes are always associated with a collection.
This interface applies to the primary collection only. See
ICollectionListManaged for linked collections.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetType()booleanFlag that indicates if the entities have a root collection per type or if there is only one global root collection.voidsetCollection(Collection collection) Associate the given collection as primary collection with the current object.Methods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescription
-
Method Details
-
isRootPerType
boolean isRootPerType()Flag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities. -
getType
ComplexTypeEntity getType() -
getCollection
Collection getCollection()- Returns:
- The primary collection. For linked collections use
ICollectionListManaged.getCollections()instead.
-
setCollection
Associate the given collection as primary collection with the current object.- Parameters:
collection- New primary collection.
-