MetaDone
metadone.metabusiness.MetaProperty< T > Interface Reference
Inheritance diagram for metadone.metabusiness.MetaProperty< T >:
Collaboration diagram for metadone.metabusiness.MetaProperty< T >:

List of all members.

Public Member Functions

Set< MetaObjectgetOwners () throws BadPreCondition
long getCardinality () throws BadPreCondition
Class< T > getType () throws BadPreCondition
public< A > MetaProperty< A > narrowType (Class< A > type) throws BadPreCondition
MetaPropertyExt< T > narrowExt (MetaObject mo) throws BadPreCondition
MetaPropertyExt< T > narrowExt (MetaObject mo, MetaObject pref) throws BadPreCondition
boolean isEnumerated () throws BadPreCondition
List< T > getEnumeration () throws BadPreCondition
boolean isRestricted ()
char[] getEnumeratedValuesChar () throws BadPreCondition
long[] getEnumeratedValuesInteger () throws BadPreCondition
String[] getEnumeratedValuesString () throws BadPreCondition
double[] getEnumeratedValuesFloat () throws BadPreCondition

Static Public Attributes

static final int INFINITY = 0

Detailed Description

A typed metaproperty.

The following types are valid:

Author:
ven
kma
Parameters:
<T>The type of the property
See also:
MetaObject
getType()

Member Function Documentation

long metadone.metabusiness.MetaProperty< T >.getCardinality ( ) throws BadPreCondition

Gets the maximum cardinality of this property.

Returns:
The cardinality of 'this' MetaProperty
Exceptions:
BadPreCondition
See also:
INFINITY

Referenced by metadone.metabusiness.impl.MetaObject_impl.produceMetaProperty(), and metadone.metabusiness.impl.MetaObject_impl.produceMetaPropertyEnumerated().

char [] metadone.metabusiness.MetaProperty< T >.getEnumeratedValuesChar ( ) throws BadPreCondition
double [] metadone.metabusiness.MetaProperty< T >.getEnumeratedValuesFloat ( ) throws BadPreCondition
long [] metadone.metabusiness.MetaProperty< T >.getEnumeratedValuesInteger ( ) throws BadPreCondition
String [] metadone.metabusiness.MetaProperty< T >.getEnumeratedValuesString ( ) throws BadPreCondition
List<T> metadone.metabusiness.MetaProperty< T >.getEnumeration ( ) throws BadPreCondition

Gets the enumerated values.

Returns:
The collection of values or null if this metaproperty is not enumerated
Exceptions:
BadPreCondition
Set<MetaObject> metadone.metabusiness.MetaProperty< T >.getOwners ( ) throws BadPreCondition

Gets the set of the owners of this property.

Returns:
The owners of 'this' MetaProperty
Exceptions:
BadPreCondition
Class<T> metadone.metabusiness.MetaProperty< T >.getType ( ) throws BadPreCondition

Gets the type of this metaproperty.

Returns:
The type of 'this' MetaProperty.
Exceptions:
BadPreCondition
boolean metadone.metabusiness.MetaProperty< T >.isEnumerated ( ) throws BadPreCondition

Indicates whether the property is enumerated.

Returns:
true iff the property is enumerated
boolean metadone.metabusiness.MetaProperty< T >.isRestricted ( )

Indicates whether the values are restircted.

Returns:
true iff the concrete properties must reuse enumerated values.
MetaPropertyExt<T> metadone.metabusiness.MetaProperty< T >.narrowExt ( MetaObject  mo) throws BadPreCondition

Typecasts the metaproperty into an unambiguous metapropertyext.

The metaproperty must be directly attached to metaobject mo: a concreterole must exist between both.

Parameters:
moDenotes the owner of the metaproperty
Returns:
A proxy that points to metaproperty attached to the mo metaobject in a unambiguous way. The result can not be null.
Exceptions:
BadPreCondition
MetaPropertyExt<T> metadone.metabusiness.MetaProperty< T >.narrowExt ( MetaObject  mo,
MetaObject  pref 
) throws BadPreCondition

Typecasts the metaproperty into a metapropertyext.

The metaproperty must be attached to the given mo or one of the supertypes of mo with a given preference to mopref. If mo is not a subtype of pref, it is replaced by pref when resolving the owner.

Parameters:
moThe metaproperty
moprefThe prefered meta-property
Returns:
A proxy that points to metaproperty attached to the mo metaobject in a unambiguous way. The result can not be null.
Exceptions:
BadPreCondition
public<A> MetaProperty<A> metadone.metabusiness.MetaProperty< T >.narrowType ( Class< A >  type) throws BadPreCondition

Changes the generic type.

Parameters:
<A>The new generic type
typeThe type class
Returns:
This with a valid type
Exceptions:
BadPreCondition

Implemented in metadone.metabusiness.MetaPropertyExt< T >.


Member Data Documentation

final int metadone.metabusiness.MetaProperty< T >.INFINITY = 0 [static]

Cardinality representing the infinity.


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