@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 ConfigurationItem
public void setId(java.lang.String id)
ConfigurationItem
setId
in interface ConfigurationItem
public java.lang.String getName()
getName
in interface ConfigurationItem
public Type getType()
getType
in interface ConfigurationItem
public void setType(Type type)
public <T> T getProperty(java.lang.String key)
getProperty
in interface ConfigurationItem
T
- The type of the property.key
- The name of the property.public boolean hasProperty(java.lang.String key)
hasProperty
in interface ConfigurationItem
key
- The name of the property.public <T> void setProperty(java.lang.String key, T value)
ConfigurationItem
setProperty
in interface ConfigurationItem
T
- 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()
ConfigurationItem
get$validationMessages
in interface ConfigurationItem
public void set$validationMessages(java.util.List<ValidationMessage> $validationMessages)
public boolean equals(java.lang.Object thatObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(BaseConfigurationItem o)
compareTo
in interface java.lang.Comparable<BaseConfigurationItem>
public java.lang.String toString()
toString
in class java.lang.Object