|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infolayer.model.UmlModelElement org.infolayer.model.UmlClassifier
Superclass of UmlClass and UmlDataType. This class is not abstract because OclAny is implemented as direct instance of UmlClassifier.
Field Summary | |
static int |
PERMISSION_CREATE
create permission constant, use in getPermission |
static int |
PERMISSION_EXEC
Execution permission, used internally in UmlOperation.getExecPermission() |
static int |
PERMISSION_NONE
Ignore permission, returns always true in getPermission |
static int |
PERMISSION_QUERY
query permission constant, use in getPermission |
static int |
PERMISSION_READ
Read permission constant, use in getPermission |
static int |
PERMISSION_WRITE
write permission constant, use in getPermission |
Fields inherited from class org.infolayer.model.UmlModelElement |
PRIVATE, PROTECTED, PUBLIC |
Constructor Summary | |
UmlClassifier()
Creates a new UmlClassifier instance. |
Method Summary | |
UmlOperation |
addOperation(java.lang.String name,
OperationImpl impl,
int modifiers,
java.lang.String description)
Creates a new UmlOperation with the given name, implementation, modifiers, sql generator and description. |
UmlOperation |
addOperation(UmlOperation o)
|
UmlProperty |
addProperty(java.lang.String name,
PropertyImpl impl,
UmlClassifier type,
int max,
java.lang.String description)
|
UmlProperty |
addProperty(UmlProperty p)
|
OclCollection |
allInstances()
|
java.util.Vector |
checkConstraints(java.lang.Object instance)
Lists constratint violations for the given instance of this classifier |
OclExpression |
compile(java.lang.String expression)
Shortcut for new OclParser(new VarDef(this), expression).parse() |
OclExpression |
compile(java.lang.String expression,
java.lang.String location)
Shortcut for new OclParser(new VarDef(this), expression).parse(), including a call to setLocation, allowing to determine the origin of the expression in the case of an error. |
java.lang.Object |
createInstance()
Creates a new instance. |
boolean |
equals(java.lang.Object o2)
|
UmlOperation |
findOperation(java.lang.String signature,
boolean required)
Searches for an operation with the given signature |
UmlProperty |
findProperty(java.lang.String name,
boolean required)
Searches for a property with the given name |
UmlClassifier |
getActualType(UmlClassifier base)
Overwriten in GenericType |
java.util.Collection |
getAllSubtypes(java.util.Collection v)
fills the given vector with all subtypes recursively. |
java.util.Vector |
getAllSupertypes()
Returns a Vector containing all supertypes, including supertypes of supertypes. |
OclCollection |
getAttribute()
Returns an Enumeration of al properties (attributes and association ends) of this classifier. |
UmlModelElement |
getBehavior()
Returns a state machine specifying the behaviour of instances of this classifier. |
UmlClassifier |
getCommonSupertype(UmlClassifier c2)
Returns the most special common supertype of this classifier and the classifier parameter |
UmlOperation |
getDynamicOperation(UmlOperation op)
Returns the correct dynamic operation for this classifier and the given operation... |
java.lang.Class |
getInstanceJavaClass()
Returns the java class of instances of this classifier. |
java.lang.String |
getLabel(java.lang.String lang)
|
UmlModel |
getModel()
Returns the UML model this classifier belongs to |
OclCollection |
getOperation()
Returns all operations, including inherited operations. |
OclCollection |
getOwnedAttribute()
|
OclCollection |
getOwnedOperation()
|
boolean |
getPermission(int type,
java.lang.Object instance)
Returns the permission of the given type for the given instance |
java.lang.Object |
getProperty(int index)
Returns the property with the given index |
int |
getPropertyCount()
|
void |
getPropertyInfo(int index,
java.util.Hashtable props,
org.ksoap2.serialization.PropertyInfo info)
|
UmlProperty |
getStateProperty()
Returns the property that stores the StateMachine state of this object. |
java.util.Vector |
getSubtypes()
|
UmlClassifier |
getSupertype()
|
java.lang.String |
getTaggedValueRecursive(java.lang.String name)
|
UmlClassifier |
getType()
Implementation of the Typed interface, returns the "Meta-Type" |
void |
init()
if not yet initialized initialize superclass, create ilProperties vector, copy super properties, add and init own properties |
OclCollection |
instances()
|
boolean |
isAbstract()
|
boolean |
isAssignableFrom(UmlClassifier c2)
Determines if the classifier represented by this UmlClassifier object is either the same as, or is a super-classifier of, the classifier represented by the specified UmlClassifier parameter. |
UmlOperation |
lookUpOperation(java.lang.String name,
UmlClassifier[] params)
|
void |
setProperty(int index,
java.lang.Object value)
|
java.lang.String |
toOclLiteral()
|
java.lang.String |
toOclLiteral(java.lang.Object object)
Please note that -- in contrast to "toString", this method adds sufficient typing inforamtion to reconstruct the object with an ocl parser. |
java.lang.String |
toString()
|
int |
typeDistance(UmlClassifier c2)
c2 is more special (parameter order identical to isAssignableFrom) |
Methods inherited from class org.infolayer.model.UmlModelElement |
getComment, getLabel, getName, getTaggedValue, getTaggedValue, getVisibility, setName, setTaggedValue, setVisibility, setVisibility |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PERMISSION_NONE
public static final int PERMISSION_READ
public static final int PERMISSION_WRITE
public static final int PERMISSION_QUERY
public static final int PERMISSION_CREATE
public static final int PERMISSION_EXEC
Constructor Detail |
public UmlClassifier()
Method Detail |
public java.lang.String toOclLiteral(java.lang.Object object)
public UmlProperty addProperty(UmlProperty p)
public UmlOperation addOperation(UmlOperation o)
public UmlOperation addOperation(java.lang.String name, OperationImpl impl, int modifiers, java.lang.String description)
public UmlProperty addProperty(java.lang.String name, PropertyImpl impl, UmlClassifier type, int max, java.lang.String description)
public java.util.Vector checkConstraints(java.lang.Object instance)
public java.lang.Object createInstance()
public boolean equals(java.lang.Object o2)
public OclCollection instances()
public OclCollection allInstances()
public UmlProperty findProperty(java.lang.String name, boolean required)
name
- The name of the method to be found.required
- If true, an exception is thrown if the method is not found. Otherwise,
null is returned.
public java.util.Collection getAllSubtypes(java.util.Collection v)
public java.util.Vector getAllSupertypes()
public UmlModelElement getBehavior()
public OclExpression compile(java.lang.String expression)
public OclExpression compile(java.lang.String expression, java.lang.String location)
public UmlClassifier getCommonSupertype(UmlClassifier c2)
public java.lang.Class getInstanceJavaClass()
public UmlModel getModel()
public boolean getPermission(int type, java.lang.Object instance)
public java.lang.Object getProperty(int index)
getProperty
in interface org.ksoap2.serialization.KvmSerializable
getProperty
in class UmlModelElement
org.ksoap2.marshal.KvmSerializable#getProperty(int)
public int getPropertyCount()
getPropertyCount
in interface org.ksoap2.serialization.KvmSerializable
getPropertyCount
in class UmlModelElement
org.ksoap2.marshal.KvmSerializable#getPropertyCount()
public void getPropertyInfo(int index, java.util.Hashtable props, org.ksoap2.serialization.PropertyInfo info)
getPropertyInfo
in interface org.ksoap2.serialization.KvmSerializable
getPropertyInfo
in class UmlModelElement
org.ksoap2.marshal.KvmSerializable#getPropertyInfo(int, PropertyInfo)
public UmlProperty getStateProperty()
public java.util.Vector getSubtypes()
public UmlClassifier getSupertype()
public UmlClassifier getType()
getType
in interface Typed
public void init()
init
in class UmlModelElement
public boolean isAbstract()
public boolean isAssignableFrom(UmlClassifier c2)
Determines if the classifier represented by this UmlClassifier object is either the same as, or is a super-classifier of, the classifier represented by the specified UmlClassifier parameter.
Specifically, this method tests whether the type represented by the specified Class parameter can be converted to the type represented by this Class object via an identity conversion or via a widening reference conversion.
public OclCollection getOperation()
public OclCollection getOwnedOperation()
public OclCollection getOwnedAttribute()
public UmlOperation getDynamicOperation(UmlOperation op)
public UmlOperation findOperation(java.lang.String signature, boolean required)
signature
- The signature of the method to be found.required
- If true, an exception is thrown if the method is not found. Otherwise,
null is returned.
public OclCollection getAttribute()
public void setProperty(int index, java.lang.Object value)
setProperty
in interface org.ksoap2.serialization.KvmSerializable
setProperty
in class UmlModelElement
org.ksoap2.marshal.KvmSerializable#setProperty(int, Object)
public java.lang.String getTaggedValueRecursive(java.lang.String name)
public UmlOperation lookUpOperation(java.lang.String name, UmlClassifier[] params)
public java.lang.String toString()
toString
in class UmlModelElement
public int typeDistance(UmlClassifier c2)
public java.lang.String getLabel(java.lang.String lang)
public UmlClassifier getActualType(UmlClassifier base)
public java.lang.String toOclLiteral()
toOclLiteral
in interface Typed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |