org.infolayer.model
Class UmlModelElement

java.lang.Object
  extended byorg.infolayer.model.UmlModelElement
All Implemented Interfaces:
org.ksoap2.serialization.KvmSerializable
Direct Known Subclasses:
Feature, MagicDrawElement, UmlAssociation, UmlClassifier, UmlConstraint, UmlEnumerationLiteral, UmlPackage, UmlParameter, UmlStateMachine, UmlStateMachineElement

public abstract class UmlModelElement
extends java.lang.Object
implements org.ksoap2.serialization.KvmSerializable


Field Summary
static int PRIVATE
           
static int PROTECTED
           
static int PUBLIC
           
 
Constructor Summary
UmlModelElement()
           
 
Method Summary
 java.lang.String getComment(java.lang.String lang)
           
 java.lang.String getLabel(UmlModel model, java.lang.String lang)
          Unfortunately, UmlModelElement has no reference to model, so a model must be given as parameter.
 java.lang.String getName()
           
 java.lang.Object getProperty(int index)
           
 int getPropertyCount()
           
 void getPropertyInfo(int index, java.util.Hashtable props, org.ksoap2.serialization.PropertyInfo info)
           
 java.lang.String getTaggedValue(java.lang.String tag)
           
 java.lang.String getTaggedValue(java.lang.String tag, java.lang.String lang)
           
 int getVisibility()
           
 void init()
          noop; implemented for AssiociationEnd, Classifier and Package
 void setName(java.lang.String value)
           
 void setProperty(int idx, java.lang.Object value)
           
 void setTaggedValue(java.lang.String tag, java.lang.String value)
           
 void setVisibility(int visibility)
           
 void setVisibility(java.lang.String visibility)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIVATE

public static final int PRIVATE
See Also:
Constant Field Values

PUBLIC

public static final int PUBLIC
See Also:
Constant Field Values

PROTECTED

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

UmlModelElement

public UmlModelElement()
Method Detail

getName

public java.lang.String getName()

getTaggedValue

public java.lang.String getTaggedValue(java.lang.String tag,
                                       java.lang.String lang)

getTaggedValue

public java.lang.String getTaggedValue(java.lang.String tag)

setTaggedValue

public void setTaggedValue(java.lang.String tag,
                           java.lang.String value)

setName

public void setName(java.lang.String value)

getVisibility

public int getVisibility()

getComment

public java.lang.String getComment(java.lang.String lang)

setVisibility

public void setVisibility(java.lang.String visibility)

setVisibility

public void setVisibility(int visibility)

init

public void init()
noop; implemented for AssiociationEnd, Classifier and Package


getProperty

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

getPropertyCount

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

getPropertyInfo

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

setProperty

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

toString

public java.lang.String toString()

getLabel

public java.lang.String getLabel(UmlModel model,
                                 java.lang.String lang)
Unfortunately, UmlModelElement has no reference to model, so a model must be given as parameter. Part and UmlClassifier provide convenience methods without a model parameter. If no tagged value il-label-"lang" and no i18n of gerName() is found, Strings.beautify(getName()) is returned.

Parameters:
model -
lang -
Returns:
String The label, obtained from il-label-lang or i18n(name)