MetaDone
metadone.metabusiness.impl.MetaRole_impl Class Reference
Inheritance diagram for metadone.metabusiness.impl.MetaRole_impl:
Collaboration diagram for metadone.metabusiness.impl.MetaRole_impl:

List of all members.

Public Member Functions

 MetaRole_impl (K_ObjectType x, Workspace_impl workspace) throws BadPreCondition
boolean disposeRoles (ConcreteObject domain, ConcreteObject range) throws BadPreCondition
List< ConcreteObjectgetDomains (ConcreteObject range) throws BadPreCondition
List< ConcreteObjectgetRanges (ConcreteObject domain) throws BadPreCondition
List< ConcreteRolelistRoles (ConcreteObject domain, ConcreteObject range) throws BadPreCondition
Cardinality getCardinality () throws BadPreCondition
MetaObject_impl getDomain () throws BadPreCondition
MetaObject_impl getRange () throws BadPreCondition
MetaObject getSide (RoleSide side) throws BadPreCondition
boolean isOrdered (RoleSide side) throws BadPreCondition
boolean isMany (RoleSide side)
String getSideName (RoleSide side) throws BadPreCondition
boolean isDomainOrdered () throws BadPreCondition
boolean isRangeOrdered () throws BadPreCondition
void setDomainOrdered (boolean isOrdered) throws BadPreCondition
void setRangeOrdered (boolean isOrdered) throws BadPreCondition
boolean isDomainMany ()
boolean isRangeMany ()
String getDomainName () throws BadPreCondition
String getRangeName () throws BadPreCondition
void setDomainName (String name) throws BadPreCondition
void setRangeName (String name) throws BadPreCondition
MetaPropertyExt<?> toMetaPropertyExt () throws BadPreCondition

Protected Member Functions

final K_PropertyType getMetaroleType ()

Private Member Functions

List< ConcreteRole_listRoles (ConcreteObject_impl domain, ConcreteObject_impl range) throws BadPreCondition
boolean isOrdered (MetaPropertyExt< Boolean > side) throws BadPreCondition
void setOrdered (boolean isOrdered, MetaPropertyExt< Boolean > side) throws BadPreCondition
void setRangeDomainName (MetaPropertyExt< String > mp, String name) throws BadPreCondition

Constructor & Destructor Documentation

metadone.metabusiness.impl.MetaRole_impl.MetaRole_impl ( K_ObjectType  x,
Workspace_impl  workspace 
) throws BadPreCondition

Should be used only by the FactoryOfProxy class !

See also:
FactoryOfProxy
Parameters:
x
workspace
Exceptions:
BadPreCondition

References metadone.metabusiness.impl.WorkspaceObject_impl.workspace.


Member Function Documentation

boolean metadone.metabusiness.impl.MetaRole_impl.disposeRoles ( ConcreteObject  domain,
ConcreteObject  range 
) throws BadPreCondition

Disposes all ConcreteRoles typed by 'this' MetaRole between the given ConcreteObjects.

Parameters:
domainthe ConcreteObject specified as the domain
rangethe ConceteObject specified as the range
Returns:
true if some concrete roles have been deleted.
Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.MetaRole_impl.listRoles().

MetaObject_impl metadone.metabusiness.impl.MetaRole_impl.getDomain ( ) throws BadPreCondition
String metadone.metabusiness.impl.MetaRole_impl.getDomainName ( ) throws BadPreCondition
List<ConcreteObject> metadone.metabusiness.impl.MetaRole_impl.getDomains ( ConcreteObject  range) throws BadPreCondition

Retrieves all ConcreteObjects that are the domains of the given ConcreteObject.

Parameters:
rangethe ConcreteObject at the domain side
Returns:
The list of ConcreteObjects of found domains
Exceptions:
BadPreConditionif the type of 'range' does not comply to the range-side of 'this', or if range is null.

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.FactoryOfProxy.buildConcreteObject(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.repository.kernel.K_Object.getRangeOfAsObject(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().

MetaObject_impl metadone.metabusiness.impl.MetaRole_impl.getRange ( ) throws BadPreCondition
String metadone.metabusiness.impl.MetaRole_impl.getRangeName ( ) throws BadPreCondition

Gets the name of the range side.

Returns:
the name of the alias for the range side of the metarole or null if there is no name
Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.ConcreteObject.getOnePropertyValue(), metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.WorkspaceObject_impl.narrow2ConcreteObject().

Referenced by metadone.metabusiness.impl.MetaRole_impl.getSideName().

List<ConcreteObject> metadone.metabusiness.impl.MetaRole_impl.getRanges ( ConcreteObject  domain) throws BadPreCondition
String metadone.metabusiness.impl.MetaRole_impl.getSideName ( RoleSide  side) throws BadPreCondition
boolean metadone.metabusiness.impl.MetaRole_impl.isDomainMany ( )

Indicates whether the cardinality of the domain is many.

Returns:
true if the cardinality of the domain side is >1

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.MetaRole_impl.getCardinality().

Referenced by metadone.metabusiness.impl.MetaRole_impl.isMany().

boolean metadone.metabusiness.impl.MetaRole_impl.isDomainOrdered ( ) throws BadPreCondition
boolean metadone.metabusiness.impl.MetaRole_impl.isMany ( RoleSide  side)
boolean metadone.metabusiness.impl.MetaRole_impl.isOrdered ( MetaPropertyExt< Boolean >  side) throws BadPreCondition [private]
boolean metadone.metabusiness.impl.MetaRole_impl.isRangeMany ( )

Indicates whether the cardinality of the range is many.

Returns:
true if the cardinality of the range side is >1

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.MetaRole_impl.getCardinality().

Referenced by metadone.metabusiness.impl.MetaRole_impl.isMany().

boolean metadone.metabusiness.impl.MetaRole_impl.isRangeOrdered ( ) throws BadPreCondition
List<ConcreteRole> metadone.metabusiness.impl.MetaRole_impl.listRoles ( ConcreteObject  domain,
ConcreteObject  range 
) throws BadPreCondition

Retrieves all ConcreteRoles between the given ConcreteObjects.

Parameters:
domainthe ConcreteObject at the domain-side (not null)
rangethe ConcreteObject at the range-side (not null)
Returns:
The list of all the concrete roles that exist between domain and range.
Exceptions:
BadPreConditionwhen the types of domain or range do not comply to the domain and range types of 'this'.

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.MetaRole_impl._listRoles(), metadone.exception.NullArgument.check(), metadone.metabusiness.impl.MetaRole_impl.getMetaroleType(), metadone.repository.kernel.K_Object.getObjectTypes(), metadone.metabusiness.impl.ConcreteObject_impl.getTarget(), and metadone.metabusiness.impl.ConcreteObject_impl.narrow().

Referenced by metadone.metabusiness.impl.MetaRole_impl.disposeRoles().

void metadone.metabusiness.impl.MetaRole_impl.setDomainName ( String  name) throws BadPreCondition

Defines the name of the domain side of the metarole.

>This name must be distinct of getRangeName(). If name is null and if an alias existed before, it is removed.

Parameters:
nameThe name or null
Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().

void metadone.metabusiness.impl.MetaRole_impl.setDomainOrdered ( boolean  isOrdered) throws BadPreCondition

Specify if the domain side of this metarole is ordered.

This method can not be used once the metarole has been instantiated (createRole).

Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.Workspace_impl.getIsDomainMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.

void metadone.metabusiness.impl.MetaRole_impl.setRangeName ( String  name) throws BadPreCondition

Defines the name of the range side of the metarole.

>This name must be distinct of getDomainName(). If name is null and if an alias existed before, it is removed.

Parameters:
nameThe name or null
Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.WorkspaceObject_impl.getWorkspace(), and metadone.metabusiness.impl.MetaRole_impl.setRangeDomainName().

void metadone.metabusiness.impl.MetaRole_impl.setRangeOrdered ( boolean  isOrdered) throws BadPreCondition

Specify if the range side of this metarole is ordered.

This method can not be used once the metarole has been instantiated (createRole).

Exceptions:
BadPreCondition

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.Workspace_impl.getIsRangeMetaRoleOrdered(), metadone.metabusiness.impl.MetaRole_impl.isOrdered(), metadone.metabusiness.impl.MetaRole_impl.setOrdered(), and metadone.metabusiness.impl.WorkspaceObject_impl.workspace.

MetaPropertyExt<?> metadone.metabusiness.impl.MetaRole_impl.toMetaPropertyExt ( ) throws BadPreCondition

Converts this role to a MetaPropertyExt.

Returns:
A metaproperty ext.
Exceptions:
BadPreConditionwhen this role does not represent a metaproperty

Implements metadone.metabusiness.MetaRole.

References metadone.metabusiness.impl.FactoryOfProxy.buildMetaPropertyExt().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations