Package com.adobe.reef.siren
Class Action
- java.lang.Object
-
- com.adobe.reef.siren.Action
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAction.Method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(Field field)Adds a fieldbooleanequals(Object obj)String[]getClazz()Returns the class attribute.List<Field>getFields()Returns the fields.StringgetHref()Returns the href attribute.Action.MethodgetMethod()Returns the method attribute.StringgetName()Returns the name attribute.StringgetTitle()Returns the title attribute.StringgetType()Returns the type attribute.inthashCode()voidsetClazz(String[] clazz)Sets the class attribute.voidsetFields(List<Field> fields)Sets the fields.voidsetHref(String href)Sets the href attribute.voidsetMethod(Action.Method method)Sets the method attribute.voidsetName(String name)Sets the name attribute.voidsetTitle(String title)Sets the title attribute.voidsetType(String type)Sets the type attribute.StringtoString()
-
-
-
Constructor Detail
-
Action
public Action(String name, String href) throws IllegalArgumentException
Constructs a new Action.- Parameters:
name-href-- Throws:
IllegalArgumentException
-
-
Method Detail
-
getName
public String getName()
Returns the name attribute.- Returns:
- the name
-
setName
public void setName(String name)
Sets the name attribute.- Parameters:
name- the name to set
-
getClazz
public String[] getClazz()
Returns the class attribute.- Returns:
- the clazz
-
setClazz
public void setClazz(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 String getHref()
Returns the href attribute.- Returns:
- the href
-
setHref
public void setHref(String href)
Sets the href attribute.- Parameters:
href- the href to set
-
getTitle
public String getTitle()
Returns the title attribute.- Returns:
- the title
-
setTitle
public void setTitle(String title)
Sets the title attribute.- Parameters:
title- the title to set
-
getType
public String getType()
Returns the type attribute.- Returns:
- the type
-
setType
public void setType(String type)
Sets the type attribute.- Parameters:
type- the type to set
-
setFields
public void setFields(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
-
-