com.ibm.jarm.api.meta
Interface RMClassDescription
-
public interface RMClassDescriptionRepository class metadata description.A specific class description can be acquired using the
RMFactory.RMClassDescriptionfactory class. All available class descriptions for a repository can be acquired using theRepository.fetchClassDescriptionsmethod.- See Also:
RMFactory.RMClassDescription
-
-
Method Summary
Methods Modifier and Type Method and Description booleanallowsInstances()Indicates whether or not objects based upon this class description can be instantiated.booleancanIncludeDescendentPropertiesInQuery()Indicates whether or not this class supports queries that include descendant properties.booleancanIncludeSubclassesInQuery()Indicates whether or not this class supports queries that include its subclasses.booleandescribedIsOfClass(java.lang.String classSymName)Indicates whether or not the class described by thisRMClassDescriptioninstance is a subclass of the specified parent class.java.util.List<RMPropertyDescription>getAllDescendentPropertyDescriptions()Returns a collection of allRMPropertyDescriptioninstances that belong to all subclasses of this class.java.lang.StringgetDefaultInstanceOwner()Returns the name of a user or group that is to be the default owner of a new instance of this class.java.util.List<RMPermission>getDefaultInstancePermissions()Returns a collection ofRMPermissioninstances that are to be used as the default set of permissions for a new instance of this class.java.lang.StringgetDescriptiveText()Returns any descriptive text for this class.java.lang.StringgetDisplayName()Returns a displayable label for this class.java.lang.StringgetId()Returns the repository unique identifier for this class description.java.lang.IntegergetImmediateInheritedPropertyCount()Specifies the number ofRMPropertyDescriptioninstances included in this class description that are inherited from the immediate superclass.java.util.List<RMClassDescription>getImmediateSubclassDescriptions()Returns a collection ofRMClassDescriptioninstances, each of which represents an immediate subclass of this class.java.lang.StringgetName()Returns a name string for this class description.java.lang.IntegergetNamePropertyIndex()Specifies the 0-based index into the class' collection ofRMPropertyDescriptioninstances designating theRMPropertyDescriptionthat represents the default "Name" property for the class, if any.RMPropertyDescriptiongetPropertyDescription(java.lang.String symbolicName)Returns theRMPropertyDescriptioninstance specified by its symbolic name from those property descriptions belonging to this class description.java.util.List<RMPropertyDescription>getPropertyDescriptions()Returns the collection ofRMPropertyDescriptions belonging to this class.RMClassDescriptiongetSuperclassDescription()Returns theRMClassDescriptionof the immediate superclass of this class.java.lang.StringgetSymbolicName()Returns the locale-independent, symbolic name of this class.booleanisCBREnabled()Specifies whether this class (or an included property) is enabled for full text indexing (content-based retrieval).booleanisHidden()Indicates whether or not this class description describes a hidden class.
-
-
-
Method Detail
-
allowsInstances
boolean allowsInstances()
Indicates whether or not objects based upon this class description can be instantiated.- Returns:
trueif instantiation is supported,falseotherwise.
-
canIncludeSubclassesInQuery
boolean canIncludeSubclassesInQuery()
Indicates whether or not this class supports queries that include its subclasses. Not supported forDomainType.P8_SRM.- Returns:
trueif subclasses can be included in a query,falseotherwise.
-
canIncludeDescendentPropertiesInQuery
boolean canIncludeDescendentPropertiesInQuery()
Indicates whether or not this class supports queries that include descendant properties. A descendant property is a property that has been added to one or more subclasses of a given class. Not supported forDomainType.P8_SRM.- Returns:
trueif descendant properties can be included in a query,falseotherwise.
-
getAllDescendentPropertyDescriptions
java.util.List<RMPropertyDescription> getAllDescendentPropertyDescriptions()
Returns a collection of allRMPropertyDescriptioninstances that belong to all subclasses of this class. Not supported forDomainType.P8_SRM.- Returns:
- A
List<RMPropertyDescription>
-
getDefaultInstanceOwner
java.lang.String getDefaultInstanceOwner()
Returns the name of a user or group that is to be the default owner of a new instance of this class. Not supported forDomainType.P8_SRM.- Returns:
- A
Stringvalue. Can benullif no default owner is defined.
-
getDefaultInstancePermissions
java.util.List<RMPermission> getDefaultInstancePermissions()
Returns a collection ofRMPermissioninstances that are to be used as the default set of permissions for a new instance of this class. Not supported forDomainType.P8_SRM.- Returns:
- A
List<collection.RMPermission>
-
getDescriptiveText
java.lang.String getDescriptiveText()
Returns any descriptive text for this class.- Returns:
- A
Stringvalue. This entry can benull.
-
getDisplayName
java.lang.String getDisplayName()
Returns a displayable label for this class.- Returns:
- A
Stringvalue.
-
getId
java.lang.String getId()
Returns the repository unique identifier for this class description.- Returns:
- A
Stringvalue.
-
getImmediateSubclassDescriptions
java.util.List<RMClassDescription> getImmediateSubclassDescriptions()
Returns a collection ofRMClassDescriptioninstances, each of which represents an immediate subclass of this class. Not supported forDomainType.P8_SRM.- Returns:
- A
List<RMClassDescription>collection.
-
getName
java.lang.String getName()
Returns a name string for this class description.- Returns:
- A
Stringvalue.
-
getNamePropertyIndex
java.lang.Integer getNamePropertyIndex()
Specifies the 0-based index into the class' collection ofRMPropertyDescriptioninstances designating theRMPropertyDescriptionthat represents the default "Name" property for the class, if any. Not supported forDomainType.P8_SRM.- Returns:
- An
Integervalue, ornullif no "Name" property is defined for the class.
-
getPropertyDescriptions
java.util.List<RMPropertyDescription> getPropertyDescriptions()
Returns the collection ofRMPropertyDescriptions belonging to this class.- Returns:
- A
List<RMPropertyDescription>
-
getPropertyDescription
RMPropertyDescription getPropertyDescription(java.lang.String symbolicName)
Returns theRMPropertyDescriptioninstance specified by its symbolic name from those property descriptions belonging to this class description.- Parameters:
symbolicName- The symbolic nameStringof the desired property.- Returns:
- The applicable
RMPropertyDescriptioninstance, ornullif not found.
-
getSuperclassDescription
RMClassDescription getSuperclassDescription()
Returns theRMClassDescriptionof the immediate superclass of this class. Not supported forDomainType.P8_SRM.- Returns:
- A
RMClassDescriptioninstance.
-
getImmediateInheritedPropertyCount
java.lang.Integer getImmediateInheritedPropertyCount()
Specifies the number ofRMPropertyDescriptioninstances included in this class description that are inherited from the immediate superclass. Not supported forDomainType.P8_SRM.- Returns:
- An
Integervalue.
-
getSymbolicName
java.lang.String getSymbolicName()
Returns the locale-independent, symbolic name of this class.- Returns:
- A
Stringvalue
-
isCBREnabled
boolean isCBREnabled()
Specifies whether this class (or an included property) is enabled for full text indexing (content-based retrieval).This class description property must be
Not supported fortruefor any of its contained property descriptions to be enabled for CBR. It must also betrueto enable full text indexing of any content associated with an instance of this class.DomainType.P8_SRM.- Returns:
trueif full text indexing is supported,falseotherwise.
-
isHidden
boolean isHidden()
Indicates whether or not this class description describes a hidden class. Not supported forDomainType.P8_SRM.- Returns:
trueif hidden,falseotherwise.
-
describedIsOfClass
boolean describedIsOfClass(java.lang.String classSymName)
Indicates whether or not the class described by thisRMClassDescriptioninstance is a subclass of the specified parent class. Not supported forDomainType.P8_SRM.- Parameters:
classSymName- Symbolic name of the parent class to check this subclass against.- Returns:
trueif the class described by thisRMClassDescriptionis a subclass of the specified parent class;falseotherwise.
-
-