public final class Action
extends java.lang.Object
Action
is a behavior that is exposed from an Entity
.Modifier and Type | Class and Description |
---|---|
static class |
Action.Method |
Constructor and Description |
---|
Action(java.lang.String name,
java.lang.String href)
Constructs a new Action.
|
Modifier and Type | Method and 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() |
public Action(java.lang.String name, java.lang.String href) throws java.lang.IllegalArgumentException
name
- href
- java.lang.IllegalArgumentException
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String[] getClazz()
public void setClazz(java.lang.String[] clazz)
clazz
- the clazz to setpublic Action.Method getMethod()
public void setMethod(Action.Method method)
method
- the method to setpublic java.lang.String getHref()
public void setHref(java.lang.String href)
href
- the href to setpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to setpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- the type to setpublic java.util.List<Field> getFields()
public void setFields(java.util.List<Field> fields)
fields
- the fields to setpublic void addField(Field field)
field
- the field to addpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"