Package com.adobe.reef.siren
Class Action
java.lang.Object
com.adobe.reef.siren.Action
An
Action is a behavior that is exposed from an Entity.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a fieldbooleanString[]getClazz()Returns the class attribute.Returns the fields.getHref()Returns the href attribute.Returns the method attribute.getName()Returns the name attribute.getTitle()Returns the title attribute.getType()Returns the type attribute.inthashCode()voidSets the class attribute.voidSets the fields.voidSets the href attribute.voidsetMethod(Action.Method method) Sets the method attribute.voidSets the name attribute.voidSets the title attribute.voidSets the type attribute.toString()
-
Constructor Details
-
Action
Constructs a new Action.- Parameters:
name-href-- Throws:
IllegalArgumentException
-
-
Method Details
-
getName
Returns the name attribute.- Returns:
- the name
-
setName
Sets the name attribute.- Parameters:
name- the name to set
-
getClazz
Returns the class attribute.- Returns:
- the clazz
-
setClazz
Sets the class attribute.- Parameters:
clazz- the clazz to set
-
getMethod
Returns the method attribute.- Returns:
- the method
-
setMethod
Sets the method attribute.- Parameters:
method- the method to set
-
getHref
Returns the href attribute.- Returns:
- the href
-
setHref
Sets the href attribute.- Parameters:
href- the href to set
-
getTitle
Returns the title attribute.- Returns:
- the title
-
setTitle
Sets the title attribute.- Parameters:
title- the title to set
-
getType
Returns the type attribute.- Returns:
- the type
-
setType
Sets the type attribute.- Parameters:
type- the type to set
-
getFields
Returns the fields.- Returns:
- the fields
-
setFields
Sets the fields.- Parameters:
fields- the fields to set
-
addField
Adds a field- Parameters:
field- the field to add
-
toString
-
hashCode
public int hashCode() -
equals
-