@Metadata(virtual=true, description="Default implementation of a CI that provides ID, name and type information.") public class BaseConfigurationItem extends java.lang.Object implements ConfigurationItem, java.lang.Comparable<BaseConfigurationItem>
ConfigurationItem that provides id, name and type information.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id |
protected java.util.Map<java.lang.String,java.lang.Object> |
syntheticProperties |
protected Type |
type |
SYNTHETIC_PROPERTIES_FIELD, TYPE_FIELD| Constructor and Description |
|---|
BaseConfigurationItem() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BaseConfigurationItem o) |
boolean |
equals(java.lang.Object thatObject) |
CiAttributes |
get$ciAttributes() |
java.lang.String |
get$token() |
java.util.List<ValidationMessage> |
get$validationMessages()
Gets the validation messages set on the ConfigurationItem.
|
java.lang.String |
getId() |
java.lang.String |
getName() |
<T> T |
getProperty(java.lang.String key) |
protected PropertyDescriptor |
getPropertyDescriptor(java.lang.String name) |
Type |
getType() |
int |
hashCode() |
boolean |
hasProperty(java.lang.String key) |
void |
set$ciAttributes(CiAttributes $ciAttributes)
Sets attributes of ci modification.
|
void |
set$token(java.lang.String $token) |
void |
set$validationMessages(java.util.List<ValidationMessage> $validationMessages) |
void |
setId(java.lang.String id)
Sets The id of the CI.
|
<T> void |
setProperty(java.lang.String key,
T value)
Adds a custom property of a generic type to the CI.
|
void |
setType(Type type)
Sets the type metadata for this CI.
|
java.lang.String |
toString() |
protected java.lang.String id
protected Type type
protected java.util.Map<java.lang.String,java.lang.Object> syntheticProperties
public java.lang.String getId()
getId in interface ConfigurationItempublic void setId(java.lang.String id)
ConfigurationItemsetId in interface ConfigurationItempublic java.lang.String getName()
getName in interface ConfigurationItempublic Type getType()
getType in interface ConfigurationItempublic void setType(Type type)
public <T> T getProperty(java.lang.String key)
getProperty in interface ConfigurationItemT - The type of the property.key - The name of the property.public boolean hasProperty(java.lang.String key)
hasProperty in interface ConfigurationItemkey - The name of the property.public <T> void setProperty(java.lang.String key,
T value)
ConfigurationItemsetProperty in interface ConfigurationItemT - The type of the property.key - The name of the property.value - The value of type T of the property.public CiAttributes get$ciAttributes()
public void set$ciAttributes(CiAttributes $ciAttributes)
$ciAttributes - attributes of ci modificationprotected PropertyDescriptor getPropertyDescriptor(java.lang.String name)
public java.lang.String get$token()
public void set$token(java.lang.String $token)
$token - The JCR optimistic locking token.public java.util.List<ValidationMessage> get$validationMessages()
ConfigurationItemget$validationMessages in interface ConfigurationItempublic void set$validationMessages(java.util.List<ValidationMessage> $validationMessages)
public boolean equals(java.lang.Object thatObject)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(BaseConfigurationItem o)
compareTo in interface java.lang.Comparable<BaseConfigurationItem>public java.lang.String toString()
toString in class java.lang.Object