psdi.common.erm

Class ERMAttribute

  • java.lang.Object
    • psdi.common.erm.ERMAttribute
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    UIERMAttribute


    public class ERMAttribute
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ERMAttribute(java.lang.String name)
      Constructor for the class with a parameter for the name of the attribute
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void cleanup() 
      ERMEntity getEntity()
      Returns the Entity instance that contains this Attribute.
      java.lang.String getName()
      Returns the name of the attribute.
      boolean isRequired()
      Returns true if the attribute is marked as required by the presentation xml.
      void setEntity(ERMEntity entity)
      Sets a the entity that the attr
      void setRequired(boolean required)
      Sets whether or not this attribute is required.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ERMAttribute

        public ERMAttribute(java.lang.String name)
        Constructor for the class with a parameter for the name of the attribute
        Parameters:
        name - - The name of the attribute
    • Method Detail

      • getEntity

        public ERMEntity getEntity()
        Returns the Entity instance that contains this Attribute.
        Returns:
        The Entity containing this Attribute.
      • setEntity

        public void setEntity(ERMEntity entity)
        Sets a the entity that the attr
        Parameters:
        entity - The entity the attribute is within.
      • getName

        public java.lang.String getName()
        Returns the name of the attribute. Can be but really should never be null.
        Returns:
        The name of the attribute
      • isRequired

        public boolean isRequired()
        Returns true if the attribute is marked as required by the presentation xml. False if not. Note this does not account for requiredness via condition ui.
        Returns:
        true the attribute is required, false it is not required by the presentation.
      • setRequired

        public void setRequired(boolean required)
        Sets whether or not this attribute is required.
        Parameters:
        required - true if required, false if not
      • cleanup

        public void cleanup()