Class MetaDescription
- java.lang.Object
-
- de.julielab.jcore.pipeline.builder.base.main.MetaDescription
-
- All Implemented Interfaces:
IMetaDescription,Serializable
public class MetaDescription extends Object implements IMetaDescription, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMetaDescription.FromJsonSetup
-
Constructor Summary
Constructors Constructor Description MetaDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBase()The name of the base component.StringgetBaseProject()List<PipelineBuilderConstants.JcoreMeta.Category>getCategories()DescriptiongetChosenDescriptor()IntegergetChosenDescriptorAsIndex()StringgetDescription()StringgetGroup()DescriptiongetJCoReDescription(String specifier)Returns a specific descriptor object.Collection<Description>getJCoReDescriptions()Returns a collection of all the descriptor names for this component.de.julielab.utilities.aether.MavenArtifactgetMavenArtifact()de.julielab.utilities.aether.MavenArtifactgetMavenArtifactCoordinates()This method returns theMavenArtifactof this MetaDescription as-is, i.e.ComponentRepositorygetModule()StringgetName()Returns the visible name of this component.booleanisExposable()BooleanisPear()voidsetArtifact(de.julielab.utilities.aether.MavenArtifact artifact)voidsetBase(String base)voidsetBaseProject(String baseProject)voidsetChosenDescriptor(String xmlName)voidsetChosenDescriptorAsIndex(Integer descIndex)Sets the chosen Descriptor as index reference to the Descriptor Array ListvoidsetDescription(String description)voidsetExposable(boolean exposable)voidsetGroup(String group)voidsetModule(ComponentRepository module)voidsetName(String name)voidsetPear(Boolean pear)StringtoString()
-
-
-
Method Detail
-
isPear
public Boolean isPear()
-
setPear
public void setPear(Boolean pear)
-
getBaseProject
public String getBaseProject()
-
setBaseProject
public void setBaseProject(String baseProject)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getBase
public String getBase()
The name of the base component. May be null if this is a base component.- Returns:
-
setBase
public void setBase(String base)
-
getGroup
public String getGroup()
-
setGroup
public void setGroup(String group)
-
isExposable
public boolean isExposable()
-
setExposable
public void setExposable(boolean exposable)
-
getChosenDescriptor
public Description getChosenDescriptor() throws DescriptorLoadingException
- Specified by:
getChosenDescriptorin interfaceIMetaDescription- Throws:
DescriptorLoadingException
-
setChosenDescriptor
public void setChosenDescriptor(String xmlName) throws DescriptorLoadingException
- Specified by:
setChosenDescriptorin interfaceIMetaDescription- Throws:
DescriptorLoadingException
-
getChosenDescriptorAsIndex
public Integer getChosenDescriptorAsIndex()
- Specified by:
getChosenDescriptorAsIndexin interfaceIMetaDescription
-
setChosenDescriptorAsIndex
public void setChosenDescriptorAsIndex(Integer descIndex)
Description copied from interface:IMetaDescriptionSets the chosen Descriptor as index reference to the Descriptor Array List- Specified by:
setChosenDescriptorAsIndexin interfaceIMetaDescription
-
getJCoReDescription
public Description getJCoReDescription(String specifier) throws DescriptorLoadingException
Description copied from interface:IMetaDescriptionReturns a specific descriptor object.- Specified by:
getJCoReDescriptionin interfaceIMetaDescription- Returns:
- Throws:
DescriptorLoadingException
-
getJCoReDescriptions
public Collection<Description> getJCoReDescriptions() throws DescriptorLoadingException
Description copied from interface:IMetaDescriptionReturns a collection of all the descriptor names for this component. The names can be used to access a specific descriptor object via thegetJCoReDescriptionmethod.- Specified by:
getJCoReDescriptionsin interfaceIMetaDescription- Returns:
- Throws:
DescriptorLoadingException
-
getName
public String getName()
Description copied from interface:IMetaDescriptionReturns the visible name of this component.- Specified by:
getNamein interfaceIMetaDescription- Returns:
-
setName
public void setName(String name)
-
getCategories
public List<PipelineBuilderConstants.JcoreMeta.Category> getCategories()
- Specified by:
getCategoriesin interfaceIMetaDescription
-
setArtifact
public void setArtifact(de.julielab.utilities.aether.MavenArtifact artifact)
-
getMavenArtifact
public de.julielab.utilities.aether.MavenArtifact getMavenArtifact()
- Specified by:
getMavenArtifactin interfaceIMetaDescription
-
getMavenArtifactCoordinates
public de.julielab.utilities.aether.MavenArtifact getMavenArtifactCoordinates()
This method returns theMavenArtifactof this MetaDescription as-is, i.e. the actual file location is not resolved. The returned value might still contain this information if the artifact has been initialized before through a call togetMavenArtifact().- Returns:
- The maven artifact information of this MetaDescription, possibly without the file location information.
-
getModule
public ComponentRepository getModule()
-
setModule
public void setModule(ComponentRepository module)
-
-