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

List of all members.

Public Member Functions

abstract K_Object getDomain () throws BadFacet
abstract K_Object getRange () throws BadFacet
abstract void setDomain (K_Object domain) throws BadFacet, BadPreCondition
abstract void setRange (K_Object range) throws BadFacet, BadPreCondition
abstract K_PropertyType getModel () throws BadFacet, BadPreCondition
abstract void forceModel (K_PropertyType model) throws BadFacet, BadPreCondition
abstract String toString ()
abstract K_PropertyType promoteToPropertyType (String name) throws BadFacet, BadPreCondition
abstract void moveAfterDomain (K_Property prop) throws BadFacet, BadPreCondition
abstract void moveAfterRange (K_Property prop) throws BadFacet, BadPreCondition
abstract void moveLastDomain () throws BadFacet, BadPreCondition
abstract void moveLastRange () throws BadFacet, BadPreCondition

Detailed Description

Author:
ven

Member Function Documentation

abstract void metadone.repository.kernel.K_Property.forceModel ( K_PropertyType  model) throws BadFacet, BadPreCondition [pure virtual]

Forces the model of an existing property. Thus property is removed from its old model (without any effect delete cascade, etc) The property is attached to the new property type. If the range and domain of the new property type are not compatible with the range and domain of the property, then an exception is thrown.

Parameters:
modelThe new property type. Must be nont null.
Exceptions:
BadFacetif 'this' is not a property.
BadPreConditionIf the domain or the range of the new property type is not compatible. If the property type 'model' is null.

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

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel(), and metadone.metabusiness.impl.UndoRedoManager_impl.UndoRedoList.undoredo().

abstract void metadone.repository.kernel.K_Property.moveAfterDomain ( K_Property  prop) throws BadFacet, BadPreCondition [pure virtual]

Delete 'this' property between the domain and the range. If 'this' property is deleted, than all the possible dependent objects have also been deleted. If the dataobject is not an object, then the method has no effect. If the databobject has no more other facets, then the dataobject is also deleted.

Precondition:
if prop is not null, then prop and this must have the same domain.
Postcondition:
if prop is null, this is placed at the first position of the list getDomain().getProperties(). Otherwise, this is moved just after prop.

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

Referenced by metadone.metabusiness.impl.ConcretePropertyExt_impl< T >._after(), metadone.metabusiness.impl.ConcreteRole_impl.afterDomain(), and metadone.metabusiness.impl.ConcreteRole_impl.afterRange().

abstract void metadone.repository.kernel.K_Property.moveAfterRange ( K_Property  prop) throws BadFacet, BadPreCondition [pure virtual]
Precondition:
if prop is not null, then prop and this must have the same range.
Postcondition:
if prop is null, this is placed at the first position of the list getRange().getProperties(). Otherwise, this is moved just after prop.

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

abstract void metadone.repository.kernel.K_Property.moveLastDomain ( ) throws BadFacet, BadPreCondition [pure virtual]

Move this property to the end of getDomain().getProperties()

Exceptions:
BadFacet
BadPreCondition

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

abstract void metadone.repository.kernel.K_Property.moveLastRange ( ) throws BadFacet, BadPreCondition [pure virtual]

Move this property to the end of getRange().getProperties();

Exceptions:
BadFacet
BadPreCondition

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

abstract K_PropertyType metadone.repository.kernel.K_Property.promoteToPropertyType ( String  name) throws BadFacet, BadPreCondition [pure virtual]

This method promotes the dataobject with a new facet.

Parameters:
nameThe name of the property type.
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().

abstract void metadone.repository.kernel.K_Property.setDomain ( K_Object  domain) throws BadFacet, BadPreCondition [pure virtual]
abstract String metadone.repository.kernel.K_Property.toString ( ) [pure virtual]

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