Class SoftwareFacetImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.entities.EntityElementImpl
-
- org.gcube.informationsystem.model.impl.entities.EntityImpl
-
- org.gcube.informationsystem.model.impl.entities.FacetImpl
-
- org.gcube.resourcemanagement.model.impl.entities.facets.SoftwareFacetImpl
-
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,SoftwareFacet,Named
public class SoftwareFacetImpl extends org.gcube.informationsystem.model.impl.entities.FacetImpl implements SoftwareFacet
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionThe description of the softwareprotected StringgroupThe group of the softwareprotected StringnameThe name of the softwareprotected booleanoptionalWhether the software is optionalprotected StringqualifierThe qualifier of the softwareprotected StringversionThe version of the software-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeys
-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypes
-
Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuid
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAME
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet
DESCRIPTION_PROPERTY, GROUP_PROPERTY, NAME, OPTIONAL_PROPERTY, QUALIFIER_PROPERTY, VERSION_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description SoftwareFacetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()A human oriented description of the software artifact being describedStringgetGroup()The name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)StringgetName()The name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)StringgetQualifier()A qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64StringgetVersion()The particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)booleanisOptional()Used to indicate the software optionality, e.g., optional in maven coordinatesvoidsetDescription(String description)Sets a human oriented description of the software artifact being describedvoidsetGroup(String group)Sets the name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)voidsetName(String name)Sets the name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)voidsetOptional(boolean optional)Sets the software optionality, e.g., optional in maven coordinatesvoidsetQualifier(String qualifier)Sets a qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64voidsetVersion(String version)Sets the particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContexts
-
Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadata
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
name
protected String name
The name of the software
-
group
protected String group
The group of the software
-
version
protected String version
The version of the software
-
description
protected String description
The description of the software
-
qualifier
protected String qualifier
The qualifier of the software
-
optional
protected boolean optional
Whether the software is optional
-
-
Method Detail
-
getName
public String getName()
The name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)- Specified by:
getNamein interfaceNamed- Specified by:
getNamein interfaceSoftwareFacet- Returns:
- the name
-
setName
public void setName(String name)
Sets the name of the software artifact being described, e.g., artifactId in maven coordinates, the software name for retail software such as 'Office' (in Microsoft™ Office 2013-SP2)- Specified by:
setNamein interfaceNamed- Specified by:
setNamein interfaceSoftwareFacet- Parameters:
name- the name
-
getGroup
public String getGroup()
The name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)- Specified by:
getGroupin interfaceSoftwareFacet- Returns:
- the group
-
setGroup
public void setGroup(String group)
Sets the name of 'group' the software artifact belongs to, e.g., groupId in maven coordinates, company name for retail software software such as 'Microsoft™' (in Microsoft™ Office 2013-SP2)- Specified by:
setGroupin interfaceSoftwareFacet- Parameters:
group- the group
-
getVersion
public String getVersion()
The particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)- Specified by:
getVersionin interfaceSoftwareFacet- Returns:
- the version
-
setVersion
public void setVersion(String version)
Sets the particular release of the software artifact, e.g., version in maven coordinates, the software version for retail software such as '2013-SP2' (in Microsoft™ Office 2013-SP2)- Specified by:
setVersionin interfaceSoftwareFacet- Parameters:
version- the version
-
getDescription
public String getDescription()
A human oriented description of the software artifact being described- Specified by:
getDescriptionin interfaceSoftwareFacet- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets a human oriented description of the software artifact being described- Specified by:
setDescriptionin interfaceSoftwareFacet- Parameters:
description- the description
-
getQualifier
public String getQualifier()
A qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64- Specified by:
getQualifierin interfaceSoftwareFacet- Returns:
- the qualifier
-
setQualifier
public void setQualifier(String qualifier)
Sets a qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64- Specified by:
setQualifierin interfaceSoftwareFacet- Parameters:
qualifier- the qualifier
-
isOptional
public boolean isOptional()
Used to indicate the software optionality, e.g., optional in maven coordinates- Specified by:
isOptionalin interfaceSoftwareFacet- Returns:
- true if the software is optional
-
setOptional
public void setOptional(boolean optional)
Sets the software optionality, e.g., optional in maven coordinates- Specified by:
setOptionalin interfaceSoftwareFacet- Parameters:
optional- true if the software is optional
-
-