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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe description of the softwareprotected StringThe group of the softwareprotected StringThe name of the softwareprotected booleanWhether the software is optionalprotected StringThe qualifier of the softwareprotected StringThe version of the softwareFields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTYFields 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 -
Method Summary
Modifier and TypeMethodDescriptionA human oriented description of the software artifact being describedgetGroup()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)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)A qualifier for the software, e.g., packaging or scope in maven coordinates, target architecture for retail software such as x86 or amd64The 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)booleanUsed to indicate the software optionality, e.g., optional in maven coordinatesvoidsetDescription(String description) Sets a human oriented description of the software artifact being describedvoidSets 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)voidSets 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, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
name
The name of the software -
group
The group of the software -
version
The version of the software -
description
The description of the software -
qualifier
The qualifier of the software -
optional
protected boolean optionalWhether the software is optional
-
-
Constructor Details
-
SoftwareFacetImpl
public SoftwareFacetImpl()
-
-
Method Details
-
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
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
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
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
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
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
A human oriented description of the software artifact being described- Specified by:
getDescriptionin interfaceSoftwareFacet- Returns:
- the description
-
setDescription
Sets a human oriented description of the software artifact being described- Specified by:
setDescriptionin interfaceSoftwareFacet- Parameters:
description- the description
-
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
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
-