Class MElement

java.lang.Object
jadex.bdi.model.MElement
Direct Known Subclasses:
MBelief, MCapability, MCapabilityReference, MCondition, MConfigBeliefElement, MConfigParameterElement, MConfiguration, MElementRef, MParameter, MParameterElement

public class MElement extends Object
Base element for model elements.
  • Field Details

    • CAPABILITY_SEPARATOR

      public static final String CAPABILITY_SEPARATOR
      The capability separator.
      See Also:
    • name

      protected String name
      The element name.
    • description

      protected String description
      The element description.
  • Constructor Details

    • MElement

      public MElement()
      Bean Constructor.
    • MElement

      public MElement(String name)
      Create a new element.
  • Method Details

    • getName

      public String getName()
      Get the name.
      Returns:
      The name.
    • setName

      public void setName(String name)
      Set the name.
      Parameters:
      name - The name to set.
    • setFlatName

      public void setFlatName(String name)
      Set the flat name, i.e. do not replay separator chars.
      Parameters:
      name - The name to set.
    • getDescription

      public String getDescription()
      Get the description.
      Returns:
      The description.
    • setDescription

      public void setDescription(String description)
      Set the description.
      Parameters:
      description - The description to set.
    • getCapabilityName

      public String getCapabilityName()
      Get the capability name for an element.
      Returns:
      The capability name or null for global elements.
    • getElementName

      public String getElementName()
      Get the local name for an element, i.e. without capability prefix, if any.
      Returns:
      The local element name.
    • hashCode

      public int hashCode()
      Get the hashcode.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Test if objects are equal.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Create a string representation.
      Overrides:
      toString in class Object
    • internalName

      public static String internalName(String name)
      Convert a name to internal form for capability separator.