IComponentDescriptor
, java.io.Serializable
FSCRDBComponent
public abstract class AbstractComponentDescriptor extends java.lang.Object implements IComponentDescriptor, java.io.Serializable
< component name >/ < property name > = < new value >
IComponentDescriptorProcessor
implementations, such as
the built-in JEXL3 support.ANY_COMPONENT_TYPE, COMPONENT_CLZ, COMPONENT_DESCRIPTOR_STYLE_PLAIN, COMPONENT_NAME, COMPONENT_TYPE, DEPENDENCIES, EXTENSION_POINTS, LINK_COMPONENT_TYPE, LINK_TARGET_COMPONENT, REVISION_INFO
Constructor | Description |
---|---|
AbstractComponentDescriptor() |
Default constructor
|
AbstractComponentDescriptor(AbstractComponentDescriptor a) |
Copy constructor
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getName() |
Gets the name of the component.
|
java.util.Properties |
getProperties() |
Get the properties of this component.
|
java.lang.String |
getProperty(java.lang.String name) |
Just a short hand for
getProperties().getProperty(String) |
java.util.Properties |
getRawProperties() |
Get the raw properties of this component.
|
long |
getRevision() |
Get the revision of the component.
|
java.lang.String |
getType() |
Gets the type of the component.
|
int |
hashCode() |
|
static java.util.Properties |
processProperties(java.util.Properties raw) |
This method uses the to process properties to their target representation using none or
some resolvable expression processing facility.
|
static java.util.Properties |
processProperties(java.util.Properties raw,
java.util.function.Function<java.lang.String,IComponentDescriptorProcessor> getProcessor) |
Processing with custom retrieval of processors.
|
void |
setName(java.lang.String name) |
|
void |
setProperties(java.util.Properties properties) |
|
void |
setRevision(long revision) |
public AbstractComponentDescriptor()
public AbstractComponentDescriptor(AbstractComponentDescriptor a)
public void setProperties(java.util.Properties properties)
public java.util.Properties getRawProperties()
IComponentDescriptor
IComponentDescriptor.getProperties()
the result of
this method is data as defined in persistent component configuration-getRawProperties
in interface IComponentDescriptor
public void setName(java.lang.String name)
public void setRevision(long revision)
public java.lang.String getName()
IComponentDescriptor
getName
in interface IComponentDescriptor
public java.util.Properties getProperties()
IComponentDescriptor
getProperties
in interface IComponentDescriptor
public static java.util.Properties processProperties(java.util.Properties raw)
public static java.util.Properties processProperties(java.util.Properties raw, java.util.function.Function<java.lang.String,IComponentDescriptorProcessor> getProcessor)
IComponentDescriptor
.public long getRevision()
IComponentDescriptor
getRevision
in interface IComponentDescriptor
public java.lang.String getType()
IComponentDescriptor
getProperty(COMPONENT_TYPE)
.getType
in interface IComponentDescriptor
public java.lang.String getProperty(java.lang.String name)
IComponentDescriptor
getProperties().getProperty(String)
getProperty
in interface IComponentDescriptor
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object