public abstract class AbstractComponent<C extends AbstractComponent<C>> extends Object implements Component<C>
Component
.Constructor and Description |
---|
AbstractComponent(Component<?> component) |
AbstractComponent(String classifier) |
AbstractComponent(String classifier,
String type) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
int |
compareTo(C other) |
boolean |
equals(Object o) |
Map<String,Action<?>> |
getActions()
A key-value map of actions used for managing the actions of this component.
|
Map<String,Object> |
getAttributes()
A key-value map used to provide additional metadata beyond the first-class properties.
|
String |
getAugmentationKey()
A unique identifier for the component within its full component tree.
|
String |
getClassifier()
An indicator of the class of components this component belongs to.
|
Map<String,Component<?>> |
getComponents()
A key-value map of components used for managing the children components of this component.
|
List<Conditional<?>> |
getConditionals()
A set of conditions used to indicate when this component should be rendered.
|
InternationalizedMessage |
getDescription()
A description used for display purposes.
|
Map<String,Endpoint<?>> |
getEndpoints()
A key-value map of endpoints used for managing the endpoints of this component.
|
String |
getId()
A unique identifier for the component among its siblings.
|
InternationalizedMessage |
getLabel()
A label used for display purposes.
|
Integer |
getOrder()
The absolute ordering of this component among its siblings.
|
String |
getScope()
The resource scope necessary for this component.
|
String |
getType()
An indicator of the type of this component.
|
int |
hashCode() |
boolean |
isTranslatable()
Whether or not this component deals with translatable data.
|
void |
setActions(Map<String,Action<?>> actions) |
void |
setAttributes(Map<String,Object> attributes) |
void |
setAugmentationKey(String augmentationKey) |
void |
setClassifier(String classifier) |
void |
setComponents(Map<String,Component<?>> components) |
void |
setConditionals(List<Conditional<?>> conditionals) |
void |
setDescription(InternationalizedMessage description) |
void |
setEndpoints(Map<String,Endpoint<?>> endpoints) |
void |
setId(String id) |
void |
setLabel(InternationalizedMessage label) |
void |
setOrder(Integer order) |
void |
setScope(String scope) |
void |
setTranslatable(boolean translatable) |
void |
setType(String type) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActionsList, getAttribute, getAttribute, getComponent, getComponent, getComponentsList, getEndpoint, getEndpoint, getEndpointsList, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, translatable, translatable, type
public AbstractComponent(String classifier)
public AbstractComponent(Component<?> component)
public int compareTo(C other)
compareTo
in interface Comparable<C extends AbstractComponent<C>>
public String getClassifier()
Component
Classifiers.FIELD
is used to distinguish fields from other form components, and
fields have unique interactions available to them, such as interacting with the form state.getClassifier
in interface Component<C extends AbstractComponent<C>>
for a list of classifiers
public String getType()
Component
FieldTypes.STRING
for a
Classifiers.FIELD
will result in a text input for managing a property.getType
in interface Component<C extends AbstractComponent<C>>
public String getId()
Component
getId
in interface Component<C extends AbstractComponent<C>>
public String getAugmentationKey()
Component
getAugmentationKey
in interface Component<C extends AbstractComponent<C>>
public InternationalizedMessage getLabel()
Component
getLabel
in interface Component<C extends AbstractComponent<C>>
public InternationalizedMessage getDescription()
Component
getDescription
in interface Component<C extends AbstractComponent<C>>
public Integer getOrder()
Component
getOrder
in interface Component<C extends AbstractComponent<C>>
public String getScope()
Component
getScope
in interface Component<C extends AbstractComponent<C>>
public boolean isTranslatable()
Component
isTranslatable
in interface Component<C extends AbstractComponent<C>>
public List<Conditional<?>> getConditionals()
Component
getConditionals
in interface Component<C extends AbstractComponent<C>>
public Map<String,Object> getAttributes()
Component
getAttributes
in interface Component<C extends AbstractComponent<C>>
public Map<String,Component<?>> getComponents()
Component
getComponents
in interface Component<C extends AbstractComponent<C>>
public Map<String,Action<?>> getActions()
Component
getActions
in interface Component<C extends AbstractComponent<C>>
public Map<String,Endpoint<?>> getEndpoints()
Component
getEndpoints
in interface Component<C extends AbstractComponent<C>>
public void setClassifier(String classifier)
setClassifier
in interface Component<C extends AbstractComponent<C>>
public void setType(String type)
setType
in interface Component<C extends AbstractComponent<C>>
public void setId(String id)
setId
in interface Component<C extends AbstractComponent<C>>
public void setAugmentationKey(String augmentationKey)
setAugmentationKey
in interface Component<C extends AbstractComponent<C>>
public void setLabel(InternationalizedMessage label)
setLabel
in interface Component<C extends AbstractComponent<C>>
public void setDescription(InternationalizedMessage description)
setDescription
in interface Component<C extends AbstractComponent<C>>
public void setOrder(Integer order)
setOrder
in interface Component<C extends AbstractComponent<C>>
public void setScope(String scope)
setScope
in interface Component<C extends AbstractComponent<C>>
public void setTranslatable(boolean translatable)
setTranslatable
in interface Component<C extends AbstractComponent<C>>
public void setConditionals(List<Conditional<?>> conditionals)
setConditionals
in interface Component<C extends AbstractComponent<C>>
public void setAttributes(Map<String,Object> attributes)
setAttributes
in interface Component<C extends AbstractComponent<C>>
public void setComponents(Map<String,Component<?>> components)
setComponents
in interface Component<C extends AbstractComponent<C>>
public void setActions(Map<String,Action<?>> actions)
setActions
in interface Component<C extends AbstractComponent<C>>
public void setEndpoints(Map<String,Endpoint<?>> endpoints)
setEndpoints
in interface Component<C extends AbstractComponent<C>>
protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.