|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sonyericsson.hudson.plugins.metadata.model.definitions.AbstractMetadataDefinition
@ExportedBean public abstract class AbstractMetadataDefinition
A metadata definition.
Nested Class Summary | |
---|---|
static class |
AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor
The descriptor for the AbstractMetadataDefinition. |
Constructor Summary | |
---|---|
AbstractMetadataDefinition(String name)
Constructor with only a name. |
|
AbstractMetadataDefinition(String name,
String description)
Constructor with name and description. |
|
AbstractMetadataDefinition(String name,
String description,
boolean exposedToEnvironment)
Constructor with name, description and exposedToEnvironment.. |
Method Summary | |
---|---|
abstract AbstractMetadataValue |
createValue(Object o)
Creates an AbstractMetadataValue from this definition. |
static hudson.DescriptorExtensionList<AbstractMetadataDefinition,AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor> |
getAll()
Returns all the registered AbstractMetadataDefinition descriptors. |
Object |
getDefaultValue()
Returns default metadata values for this definition. |
String |
getDescription()
Returns the description of this definition. |
AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor |
getDescriptor()
Returns the descriptor of this definition. |
String |
getFullName()
This function will generate the full name. |
String |
getFullName(String separator)
This function will generate the full name, using the chosen separator. |
String |
getFullNameFrom(MetadataParent<MetadataDefinition> base)
Gives the full name. |
String[] |
getFullPath()
Gives the full path as a String array.. |
String |
getName()
Returns the name of this metadata. |
MetadataParent |
getParent()
The parent of this metadata. |
String |
getType()
Returns the simple name of the class. |
Object |
getValue()
Get the value. |
boolean |
isExposedToEnvironment()
Returns whether or not this should be exposed to the environment. |
void |
setExposeToEnvironment(boolean expose)
Set whether this should be exposed to the environment or not. |
void |
setParent(MetadataParent parent)
The parent of this metadata. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMetadataDefinition(String name)
name
- the name of the definition.public AbstractMetadataDefinition(String name, String description)
name
- the name of the definition.description
- the description of the definition.public AbstractMetadataDefinition(String name, String description, boolean exposedToEnvironment)
name
- the name of the definition.description
- the description of the definition.exposedToEnvironment
- If this definition should be exposed as an environment variable.Method Detail |
---|
@Exported public String getType()
@Exported public String getName()
Metadata
getName
in interface Metadata<MetadataDefinition>
public MetadataParent getParent()
Metadata
getParent
in interface Metadata<MetadataDefinition>
public void setParent(MetadataParent parent)
Metadata
setParent
in interface Metadata<MetadataDefinition>
parent
- the metadata.public boolean isExposedToEnvironment()
Metadata
isExposedToEnvironment
in interface Metadata<MetadataDefinition>
public void setExposeToEnvironment(boolean expose)
Metadata
setExposeToEnvironment
in interface Metadata<MetadataDefinition>
expose
- true if this should be exposed, false if not.@Exported public String getFullName(String separator)
getFullName
in interface MetadataDefinition
separator
- the separator to use.
@Exported public String getFullName()
getFullName
in interface Metadata<MetadataDefinition>
public String getFullNameFrom(MetadataParent<MetadataDefinition> base)
Metadata
getFullNameFrom
in interface Metadata<MetadataDefinition>
base
- the parent to calculate the path from.
public String[] getFullPath()
Metadata
getFullPath
in interface Metadata<MetadataDefinition>
@Exported public String getDescription()
getDescription
in interface Metadata<MetadataDefinition>
public AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<AbstractMetadataDefinition>
public abstract AbstractMetadataValue createValue(Object o)
createValue
in interface MetadataDefinition
o
- the value to use as input for creating the AbstractMetadataValue.
@Exported public Object getDefaultValue()
public Object getValue()
Metadata
getValue
in interface Metadata<MetadataDefinition>
public static hudson.DescriptorExtensionList<AbstractMetadataDefinition,AbstractMetadataDefinition.AbstractMetaDataDefinitionDescriptor> getAll()
AbstractMetadataDefinition
descriptors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |