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 class
Action.Method
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(Field field)
Adds a fieldboolean
equals(Object obj)
String[]
getClazz()
Returns the class attribute.List<Field>
getFields()
Returns the fields.String
getHref()
Returns the href attribute.Action.Method
getMethod()
Returns the method attribute.String
getName()
Returns the name attribute.String
getTitle()
Returns the title attribute.String
getType()
Returns the type attribute.int
hashCode()
void
setClazz(String[] clazz)
Sets the class attribute.void
setFields(List<Field> fields)
Sets the fields.void
setHref(String href)
Sets the href attribute.void
setMethod(Action.Method method)
Sets the method attribute.void
setName(String name)
Sets the name attribute.void
setTitle(String title)
Sets the title attribute.void
setType(String type)
Sets the type attribute.String
toString()
-
-
-
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
-
-