Package jadex.bdiv3.model
Class MElement
- java.lang.Object
- 
- jadex.bdiv3.model.MElement
 
- 
- Direct Known Subclasses:
- MBelief,- MCapability,- MCapabilityReference,- MCondition,- MConfigBeliefElement,- MConfigParameterElement,- MConfiguration,- MElementRef,- MParameter,- MParameterElement
 
 public class MElement extends java.lang.ObjectBase element for model elements.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringCAPABILITY_SEPARATORThe capability separator.protected java.lang.StringdescriptionThe element description.protected java.lang.StringnameThe element name.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if objects are equal.java.lang.StringgetCapabilityName()Get the capability name for an element.java.lang.StringgetDescription()Get the description.java.lang.StringgetElementName()Get the local name for an element, i.e.java.lang.StringgetName()Get the name.inthashCode()Get the hashcode.static java.lang.StringinternalName(java.lang.String name)Convert a name to internal form for capability separator.voidsetDescription(java.lang.String description)Set the description.voidsetFlatName(java.lang.String name)Set the flat name, i.e.voidsetName(java.lang.String name)Set the name.java.lang.StringtoString()Create a string representation.
 
- 
- 
- 
Field Detail- 
CAPABILITY_SEPARATORpublic static final java.lang.String CAPABILITY_SEPARATOR The capability separator.- See Also:
- Constant Field Values
 
 - 
nameprotected java.lang.String name The element name.
 - 
descriptionprotected java.lang.String description The element description.
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- The name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
setFlatNamepublic void setFlatName(java.lang.String name) Set the flat name, i.e. do not replay separator chars.- Parameters:
- name- The name to set.
 
 - 
getDescriptionpublic java.lang.String getDescription() Get the description.- Returns:
- The description.
 
 - 
setDescriptionpublic void setDescription(java.lang.String description) Set the description.- Parameters:
- description- The description to set.
 
 - 
getCapabilityNamepublic java.lang.String getCapabilityName() Get the capability name for an element.- Returns:
- The capability name or null for global elements.
 
 - 
getElementNamepublic java.lang.String getElementName() Get the local name for an element, i.e. without capability prefix, if any.- Returns:
- The local element name.
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if objects are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Create a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 - 
internalNamepublic static java.lang.String internalName(java.lang.String name) Convert a name to internal form for capability separator.
 
- 
 
-