org.infolayer.model
Class UmlProperty

java.lang.Object
  extended byorg.infolayer.model.UmlModelElement
      extended byorg.infolayer.model.Feature
          extended byorg.infolayer.model.UmlProperty
All Implemented Interfaces:
org.ksoap2.serialization.KvmSerializable
Direct Known Subclasses:
UmlAttribute

public class UmlProperty
extends Feature
implements org.ksoap2.serialization.KvmSerializable

Author:
haustein To change this generated comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
static int AGGREGATION_AGGREGATE
           
static int AGGREGATION_COMPOSITE
           
static int AGGREGATION_NONE
           
 
Fields inherited from class org.infolayer.model.UmlModelElement
PRIVATE, PROTECTED, PUBLIC
 
Constructor Summary
UmlProperty()
           
 
Method Summary
 boolean add(UmlObject object, java.lang.Object value)
          Add value to this property of object.
 boolean canQuery()
           
 boolean canRead(java.lang.Object self)
           
 boolean canWrite(java.lang.Object self)
           
 java.lang.Object get(java.lang.Object object)
           
 int getAggregation()
           
 OclCollection getCandidates(java.lang.Object object)
          Returns a collection of all "candidates" for a property.
 OclCollection getCollection(java.lang.Object obj)
          Always returns a collection, also for max. cardinality 1
 int getMax()
          Maximum cardinality of an association. <= 0 means unlimited.
 java.lang.String getName()
           
 UmlAssociationEnd getOpposite()
           
 UmlOrderingKind getOrdering()
           
 boolean getPermission(int permissionType, java.lang.Object self)
          Please note that for PERMISSION_QUERY, self may be null
 java.lang.Object getProperty(int index)
           
 int getPropertyCount()
           
 void getPropertyInfo(int index, java.util.Hashtable properties, org.ksoap2.serialization.PropertyInfo info)
           
 int getStorageIndex()
           
 java.lang.String getTaggedValue(java.lang.String key)
           
 UmlClassifier getType()
           
 void init()
          noop; implemented for AssiociationEnd, Classifier and Package
 boolean isDeferred()
           
 boolean isOrdered()
           
 boolean isPhysical()
          Determines whether the property corresponds to an underlying database field or is derived from another property.
 boolean isWriteable()
          In contrast to canWrite, this method does not handle user permissions, it just determines if writing is technically possible.
 boolean remove(UmlObject object, java.lang.Object value)
          Remove value from this property of object.
 void set(UmlObject object, java.lang.Object value)
          Set this propberty of object to value.
 void setProperty(int idx, java.lang.Object value)
           
 
Methods inherited from class org.infolayer.model.Feature
checkConstraints, getClassifier, getId, getLabel, toString
 
Methods inherited from class org.infolayer.model.UmlModelElement
getComment, getLabel, getTaggedValue, getVisibility, setName, setTaggedValue, setVisibility, setVisibility
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AGGREGATION_NONE

public static final int AGGREGATION_NONE
See Also:
Constant Field Values

AGGREGATION_AGGREGATE

public static final int AGGREGATION_AGGREGATE
See Also:
Constant Field Values

AGGREGATION_COMPOSITE

public static final int AGGREGATION_COMPOSITE
See Also:
Constant Field Values
Constructor Detail

UmlProperty

public UmlProperty()
Method Detail

getCollection

public OclCollection getCollection(java.lang.Object obj)
Always returns a collection, also for max. cardinality 1


getName

public java.lang.String getName()
Overrides:
getName in class UmlModelElement

canRead

public boolean canRead(java.lang.Object self)

canWrite

public boolean canWrite(java.lang.Object self)

canQuery

public boolean canQuery()

getPermission

public boolean getPermission(int permissionType,
                             java.lang.Object self)
Please note that for PERMISSION_QUERY, self may be null


add

public boolean add(UmlObject object,
                   java.lang.Object value)
Add value to this property of object. Only simple additions are supporte, value must not be a collection. If value is null, nothing is added.

Parameters:
object -
value -
Returns:

get

public java.lang.Object get(java.lang.Object object)
Specified by:
get in class Feature

isWriteable

public boolean isWriteable()
In contrast to canWrite, this method does not handle user permissions, it just determines if writing is technically possible.


isPhysical

public boolean isPhysical()
Determines whether the property corresponds to an underlying database field or is derived from another property.

Returns:
false if the property is derived, true otherwise

getMax

public int getMax()
Maximum cardinality of an association. <= 0 means unlimited. Convenience method for getMultiplicity().getRange.getUpper()


getOrdering

public UmlOrderingKind getOrdering()

getProperty

public java.lang.Object getProperty(int index)
Specified by:
getProperty in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getProperty in class UmlModelElement
See Also:
org.ksoap2.marshal.KvmSerializable#getProperty(int)

getPropertyCount

public int getPropertyCount()
Specified by:
getPropertyCount in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getPropertyCount in class UmlModelElement
See Also:
org.ksoap2.marshal.KvmSerializable#getPropertyCount()

getPropertyInfo

public void getPropertyInfo(int index,
                            java.util.Hashtable properties,
                            org.ksoap2.serialization.PropertyInfo info)
Specified by:
getPropertyInfo in interface org.ksoap2.serialization.KvmSerializable
Overrides:
getPropertyInfo in class UmlModelElement
See Also:
org.ksoap2.marshal.KvmSerializable#getPropertyInfo(int, PropertyInfo)

getStorageIndex

public int getStorageIndex()

getTaggedValue

public java.lang.String getTaggedValue(java.lang.String key)
Overrides:
getTaggedValue in class UmlModelElement

getType

public UmlClassifier getType()
Specified by:
getType in class Feature

init

public void init()
Description copied from class: UmlModelElement
noop; implemented for AssiociationEnd, Classifier and Package

Overrides:
init in class UmlModelElement

isDeferred

public boolean isDeferred()

isOrdered

public boolean isOrdered()

remove

public boolean remove(UmlObject object,
                      java.lang.Object value)
Remove value from this property of object. If value is null, nothing is changed.

Returns:
True if value was previously a member of this property.

set

public void set(UmlObject object,
                java.lang.Object value)
Set this propberty of object to value. The set operation is transformed into a sequence of remove and add operations if set is not supported. It performs an implicit conversion from/to collections, depending on the property cardinaltiy.


setProperty

public void setProperty(int idx,
                        java.lang.Object value)
Specified by:
setProperty in interface org.ksoap2.serialization.KvmSerializable
Overrides:
setProperty in class UmlModelElement
See Also:
org.ksoap2.marshal.KvmSerializable#setProperty(int, Object)

getCandidates

public OclCollection getCandidates(java.lang.Object object)
Returns a collection of all "candidates" for a property. If object is not null, the choice is limited to candidates that have not reached their maximum cardinality and are not already linked


getAggregation

public int getAggregation()

getOpposite

public UmlAssociationEnd getOpposite()