Package com.adobe.reef.siren
Class Action
- java.lang.Object
-
- com.adobe.reef.siren.Action
-
public final class Action extends java.lang.ObjectAnActionis a behavior that is exposed from anEntity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAction.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 voidaddField(Field field)Adds a fieldbooleanequals(java.lang.Object obj)java.lang.String[]getClazz()Returns the class attribute.java.util.List<Field>getFields()Returns the fields.java.lang.StringgetHref()Returns the href attribute.Action.MethodgetMethod()Returns the method attribute.java.lang.StringgetName()Returns the name attribute.java.lang.StringgetTitle()Returns the title attribute.java.lang.StringgetType()Returns the type attribute.inthashCode()voidsetClazz(java.lang.String[] clazz)Sets the class attribute.voidsetFields(java.util.List<Field> fields)Sets the fields.voidsetHref(java.lang.String href)Sets the href attribute.voidsetMethod(Action.Method method)Sets the method attribute.voidsetName(java.lang.String name)Sets the name attribute.voidsetTitle(java.lang.String title)Sets the title attribute.voidsetType(java.lang.String type)Sets the type attribute.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-