Class Action


  • public final class Action
    extends java.lang.Object
    An Action is a behavior that is exposed from an Entity.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Action.Method  
    • Constructor Summary

      Constructors 
      Constructor Description
      Action​(java.lang.String name, java.lang.String href)
      Constructs a new Action.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addField​(Field field)
      Adds a field
      boolean equals​(java.lang.Object obj)  
      java.lang.String[] getClazz()
      Returns the class attribute.
      java.util.List<Field> getFields()
      Returns the fields.
      java.lang.String getHref()
      Returns the href attribute.
      Action.Method getMethod()
      Returns the method attribute.
      java.lang.String getName()
      Returns the name attribute.
      java.lang.String getTitle()
      Returns the title attribute.
      java.lang.String getType()
      Returns the type attribute.
      int hashCode()  
      void setClazz​(java.lang.String[] clazz)
      Sets the class attribute.
      void setFields​(java.util.List<Field> fields)
      Sets the fields.
      void setHref​(java.lang.String href)
      Sets the href attribute.
      void setMethod​(Action.Method method)
      Sets the method attribute.
      void setName​(java.lang.String name)
      Sets the name attribute.
      void setTitle​(java.lang.String title)
      Sets the title attribute.
      void setType​(java.lang.String type)
      Sets the type attribute.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Action

        public Action​(java.lang.String name,
                      java.lang.String href)
               throws java.lang.IllegalArgumentException
        Constructs a new Action.
        Parameters:
        name -
        href -
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name attribute.
        Returns:
        the name
      • setName

        public void setName​(java.lang.String name)
        Sets the name attribute.
        Parameters:
        name - the name to set
      • getClazz

        public java.lang.String[] getClazz()
        Returns the class attribute.
        Returns:
        the clazz
      • setClazz

        public void setClazz​(java.lang.String[] clazz)
        Sets the class attribute.
        Parameters:
        clazz - the clazz to set
      • getMethod

        public Action.Method getMethod()
        Returns the method attribute.
        Returns:
        the method
      • setMethod

        public void setMethod​(Action.Method method)
        Sets the method attribute.
        Parameters:
        method - the method to set
      • getHref

        public java.lang.String getHref()
        Returns the href attribute.
        Returns:
        the href
      • setHref

        public void setHref​(java.lang.String href)
        Sets the href attribute.
        Parameters:
        href - the href to set
      • getTitle

        public java.lang.String getTitle()
        Returns the title attribute.
        Returns:
        the title
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title attribute.
        Parameters:
        title - the title to set
      • getType

        public java.lang.String getType()
        Returns the type attribute.
        Returns:
        the type
      • setType

        public void setType​(java.lang.String type)
        Sets the type attribute.
        Parameters:
        type - the type to set
      • getFields

        public java.util.List<Field> getFields()
        Returns the fields.
        Returns:
        the fields
      • setFields

        public void setFields​(java.util.List<Field> fields)
        Sets the fields.
        Parameters:
        fields - the fields to set
      • addField

        public void addField​(Field field)
        Adds a field
        Parameters:
        field - the field to add
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object