Interface Demographic
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A Demographic is an OsidRule for building demographics
of Resources . A demographic is the resource query plus the
included demographics plus the intersecting demographics plus the included
resources minus the exempted demographics minus the excluded resources.
Demographic genus type may be used to provide alternate equations.
-
Method Summary
Modifier and TypeMethodDescriptiongetDemographicRecord(Type demographicRecordType) Gets the demographic record corresponding to the givenDemographicrecordType.Gets a list ofDemographicIdswhose members are subtracted from in this demographic.Gets a list ofDemographicswhose members subtracted from this demographic.Gets a list ofResourceIdsto be subtracted from this demographic.Gets a list ofResourcesto be subtracted from this demographic.Gets a list ofDemographicIdswhose members are added to this demographic.Gets a list ofDemographicswhose members are added to this demographic.Gets a list ofDemographicIdswhose non-members are added to this demographic.Gets a list ofDemographicswhose non-members are added to this demographic.Gets a list ofDemographicIdswhose intersection is added to this demographic.Gets a list ofDemographicswhose intersection is added to this demographic.Gets a list of individualResourceIdsto be added to this demographic.Gets a list of individualResourcesto be added to this demographic.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getIncludedDemographicIds
IdList getIncludedDemographicIds()Gets a list ofDemographicIdswhose members are added to this demographic. The union of these demographics is added to this demographic.- Returns:
- the demographic
Ids - Compliance:
mandatory- This method must be implemented.
-
getIncludedDemographics
Gets a list ofDemographicswhose members are added to this demographic. The union of these demographics is added to this demographic.- Returns:
- the demographics
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getIncludedIntersectingDemographicIds
IdList getIncludedIntersectingDemographicIds()Gets a list ofDemographicIdswhose intersection is added to this demographic. The intersection of these demographics is added to this demographic.- Returns:
- the intersecting demographic
Ids - Compliance:
mandatory- This method must be implemented.
-
getIncludedIntersectingDemographics
Gets a list ofDemographicswhose intersection is added to this demographic. The intersection of these demographics is added to this demographic.- Returns:
- the intersecting demographics
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getIncludedExclusiveDemographicIds
IdList getIncludedExclusiveDemographicIds()Gets a list ofDemographicIdswhose non-members are added to this demographic.- Returns:
- the exclusive demographic
Ids - Compliance:
mandatory- This method must be implemented.
-
getIncludedExclusiveDemographics
Gets a list ofDemographicswhose non-members are added to this demographic.- Returns:
- the exclusive demographics
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getExcludedDemographicIds
IdList getExcludedDemographicIds()Gets a list ofDemographicIdswhose members are subtracted from in this demographic.- Returns:
- the excluded demographic
Ids - Compliance:
mandatory- This method must be implemented.
-
getExcludedDemographics
Gets a list ofDemographicswhose members subtracted from this demographic.- Returns:
- the excluded demographics
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getIncludedResourceIds
IdList getIncludedResourceIds()Gets a list of individualResourceIdsto be added to this demographic.- Returns:
- the included resource
Ids - Compliance:
mandatory- This method must be implemented.
-
getIncludedResources
Gets a list of individualResourcesto be added to this demographic.- Returns:
- the included resources
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getExcludedResourceIds
IdList getExcludedResourceIds()Gets a list ofResourceIdsto be subtracted from this demographic.- Returns:
- the excluded resource
Ids - Compliance:
mandatory- This method must be implemented.
-
getExcludedResources
Gets a list ofResourcesto be subtracted from this demographic.- Returns:
- the exempted resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDemographicRecord
Gets the demographic record corresponding to the givenDemographicrecordType. This method is used to retrieve an object implementing the requested record. ThedemographicRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(demographicRecordType)istrue.- Parameters:
demographicRecordType- the type of demographic record to retrieve- Returns:
- the demographic record
- Throws:
NullArgumentException-demographicRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(demographicRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-