public class AttributeDefinition extends org.craftercms.commons.security.permissions.SecuredObjectBase<AttributePermission>
| Constructor and Description |
|---|
AttributeDefinition() |
AttributeDefinition(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getDefaultValue()
Returns the default value for all attributes.
|
Map<String,Object> |
getMetadata()
Returns the additional metadata associated to an attribute (like label, type, etc.).
|
String |
getName()
Returns the name of the attribute.
|
int |
hashCode() |
void |
setDefaultValue(Object defaultValue)
Sets the default value of all attributes.
|
void |
setMetadata(Map<String,Object> metadata)
Sets the additional metadata associated to an attribute (like label, type, etc.).
|
void |
setName(String name)
Sets the attribute name.
|
String |
toString() |
public AttributeDefinition()
public AttributeDefinition(String name)
public String getName()
public void setName(String name)
public Map<String,Object> getMetadata()
public void setMetadata(Map<String,Object> metadata)
public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
Copyright © 2015 CrafterCMS. All Rights Reserved.