org.infolayer.model
Class UmlObject

java.lang.Object
  extended byorg.infolayer.model.UmlObject
All Implemented Interfaces:
java.lang.Comparable, org.ksoap2.serialization.KvmSerializable, Typed

public class UmlObject
extends java.lang.Object
implements org.ksoap2.serialization.KvmSerializable, Typed, java.lang.Comparable


Constructor Summary
UmlObject(UmlClass umlClass)
          Generates a new object.
 
Method Summary
 java.util.Vector checkConstraints(boolean includeParts)
           
 int compareTo(java.lang.Object o)
           
 java.lang.String defaultOclToString()
           
 void delete()
           
 boolean equals(java.lang.Object o2)
           
 UmlObject getCopy()
          Creates a copy of this object.
 Entry getEntry(UmlProperty prop)
          Internal method for usage by connection
 java.lang.String getId()
           
 java.lang.Object getProperty(int index)
          Deprecated. Vectors are copied automatically!
 java.lang.Object getProperty(java.lang.String name)
           
 int getPropertyCount()
          Like getProperty, but vectors are converted to OCL Collections automatically.
 void getPropertyInfo(int index, java.util.Hashtable props, org.ksoap2.serialization.PropertyInfo info)
           
 ObjectState getState()
           
 UmlClassifier getType()
          Returns the Uml type of this object
 UmlClass getUmlClass()
           
 boolean isDeleted()
           
 void loaded()
           
 void lock()
           
 void notifyChanged(java.lang.String field)
          Called from UI to notify instance about changes
 void notifyCreated()
          Called from UI to notify instance about creation
 void notifyDeleted()
          Called from UI to notify instance about destruction
 long saving()
          returns the previous value of lastSaved and sets it to the current time
 void setProperty(int index, java.lang.Object value)
          Use this instead of setProperty(int index, Object value public void setProperty(Property property, Object value){ setProperty(property.partIndex, value); } /** Attention: In loading mode, the inverse relation is not set automatically, since this may result in "unintended" loading of the related object.
 void setProperty(java.lang.String name, java.lang.Object value)
           
 java.lang.String toOclLiteral()
           
 java.lang.String toString()
          Calls the actual OCL toString implementation
 void unlock()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UmlObject

public UmlObject(UmlClass umlClass)
Generates a new object. The id is generated by the connection.

Method Detail

checkConstraints

public java.util.Vector checkConstraints(boolean includeParts)

delete

public void delete()

isDeleted

public boolean isDeleted()

equals

public boolean equals(java.lang.Object o2)

getEntry

public Entry getEntry(UmlProperty prop)
Internal method for usage by connection


getProperty

public java.lang.Object getProperty(int index)
Deprecated. Vectors are copied automatically!

Specified by:
getProperty in interface org.ksoap2.serialization.KvmSerializable

getPropertyCount

public int getPropertyCount()
Like getProperty, but vectors are converted to OCL Collections automatically. public Object getPropertyOcl(int index){ return ((Property) umlClass.getFeature(index)).getOcl(this); }

Specified by:
getPropertyCount in interface org.ksoap2.serialization.KvmSerializable

getPropertyInfo

public void getPropertyInfo(int index,
                            java.util.Hashtable props,
                            org.ksoap2.serialization.PropertyInfo info)
Specified by:
getPropertyInfo in interface org.ksoap2.serialization.KvmSerializable

setProperty

public void setProperty(int index,
                        java.lang.Object value)
Use this instead of setProperty(int index, Object value public void setProperty(Property property, Object value){ setProperty(property.partIndex, value); } /** Attention: In loading mode, the inverse relation is not set automatically, since this may result in "unintended" loading of the related object.

Specified by:
setProperty in interface org.ksoap2.serialization.KvmSerializable

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)

getUmlClass

public UmlClass getUmlClass()

getId

public java.lang.String getId()

getType

public UmlClassifier getType()
Description copied from interface: Typed
Returns the Uml type of this object

Specified by:
getType in interface Typed

defaultOclToString

public java.lang.String defaultOclToString()

toString

public java.lang.String toString()
Calls the actual OCL toString implementation


saving

public long saving()
returns the previous value of lastSaved and sets it to the current time


loaded

public void loaded()

getProperty

public java.lang.Object getProperty(java.lang.String name)

getCopy

public UmlObject getCopy()
Creates a copy of this object. The method tries to obey the specified multiplicities etc.


getState

public ObjectState getState()

notifyChanged

public void notifyChanged(java.lang.String field)
Called from UI to notify instance about changes


notifyDeleted

public void notifyDeleted()
Called from UI to notify instance about destruction


notifyCreated

public void notifyCreated()
Called from UI to notify instance about creation


toOclLiteral

public java.lang.String toOclLiteral()
Specified by:
toOclLiteral in interface Typed

lock

public void lock()

unlock

public void unlock()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable