MetaDone
metadone.repository.kernel.K_Object Interface Reference
Inheritance diagram for metadone.repository.kernel.K_Object:
Collaboration diagram for metadone.repository.kernel.K_Object:

List of all members.

Public Member Functions

Set< K_ObjectTypegetObjectTypes () throws BadFacet
boolean hasType (K_ObjectType type) throws BadFacet, BadPreCondition
List< K_PropertygetDomainOf () throws BadFacet, BadPreCondition
List< K_PropertygetRangeOf () throws BadFacet, BadPreCondition
List< K_PropertygetDomainOf (K_PropertyType model) throws BadFacet, BadPreCondition
List< K_PropertygetRangeOf (K_PropertyType model) throws BadFacet, BadPreCondition
K_Property getDomainOf (K_PropertyType model, K_Object range) throws BadFacet, BadPreCondition
K_Property getRangeOf (K_PropertyType model, K_Object domain) throws BadFacet, BadPreCondition
List< K_ObjectgetDomainOfAsObject (K_PropertyType model) throws BadFacet, BadPreCondition
List< K_ObjectgetRangeOfAsObject (K_PropertyType model) throws BadFacet, BadPreCondition
String toString ()
K_ObjectType promoteToObjectType (String name) throws BadFacet, BadPreCondition
void addObjectType (K_ObjectType type) throws BadPreCondition, BadFacet

Detailed Description

Author:
ven

Member Function Documentation

void metadone.repository.kernel.K_Object.addObjectType ( K_ObjectType  type) throws BadPreCondition, BadFacet

This method tries to delete 'this' object. If 'this' object is deleted, all the dependent objects and properties have also been deleted. The method only deletes the facet and not the dataobject. Hence, the property facet of 'this' dataobject can still survive afterwards. Nevertheless, if all the facets are removed, then the dataobject is also deleted. If the dataobject has not the expected facet, then the method has no effect. Add type in the types of this object. If for some reason, this is not possible, then the badPreCondition is thrown.

Parameters:
typethe new type, not null.
Exceptions:
BadPreCondition
BadFacet

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

Referenced by metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), and metadone.metabusiness.impl.MetaObject_impl.createMetaProperty().

List<K_Property> metadone.repository.kernel.K_Object.getDomainOf ( K_PropertyType  model) throws BadFacet, BadPreCondition
Parameters:
model
Returns:
The properties of which the object is the domain and of which 'model' is the property type.
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

K_Property metadone.repository.kernel.K_Object.getDomainOf ( K_PropertyType  model,
K_Object  range 
) throws BadFacet, BadPreCondition
Parameters:
model
range
Returns:
the property which has model as pattern, this as domain and range as range.
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

List<K_Property> metadone.repository.kernel.K_Object.getRangeOf ( K_PropertyType  model) throws BadFacet, BadPreCondition
Parameters:
model
Returns:
The properties of which the object is the range and of which 'model' is the property type.
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

K_Property metadone.repository.kernel.K_Object.getRangeOf ( K_PropertyType  model,
K_Object  domain 
) throws BadFacet, BadPreCondition
Parameters:
model
domain
Returns:
the property which has model as pattern, this as range and domain as domain.
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

List<K_Object> metadone.repository.kernel.K_Object.getRangeOfAsObject ( K_PropertyType  model) throws BadFacet, BadPreCondition
Parameters:
model
Returns:
The objects whose are the domain of some property that is an instance of 'model' and of which the range is 'this'
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

Referenced by metadone.metabusiness.impl.ConcreteModel_impl._getDefinitionRestricted(), metadone.metabusiness.impl.ConcreteModel_impl.getDefinition(), and metadone.metabusiness.impl.MetaRole_impl.getDomains().

boolean metadone.repository.kernel.K_Object.hasType ( K_ObjectType  type) throws BadFacet, BadPreCondition
Returns:
true is 'this' has the 'type' ObjectType as a type.
Exceptions:
BadFacetIf 'this' does not have the required facet.
BadPreConditionIf type is null

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

Referenced by metadone.repository.kernel.jpa2.DataObjectJPA2.createObjectType(), metadone.metabusiness.impl.MetaModel_impl.getMetaObjectsInDefinition_oneshot(), and metadone.metabusiness.impl.ConcreteProperty_impl< T >.getOwners().

K_ObjectType metadone.repository.kernel.K_Object.promoteToObjectType ( String  name) throws BadFacet, BadPreCondition

This method adds a new facet (object type) to the dataobject.

Parameters:
nameThe name of the new metaobject.
Returns:
The new facet
Exceptions:
BadFacet
BadPreCondition

Implemented in metadone.repository.kernel.jpa2.DataObjectJPA2.

Referenced by metadone.metabusiness.impl.MetaObject_impl._shareMetaProperty(), and metadone.metabusiness.impl.MetaObject_impl.createMetaProperty().

String metadone.repository.kernel.K_Object.toString ( )

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