Class TypeImpl
- java.lang.Object
-
- org.gcube.informationsystem.types.impl.TypeImpl
-
- All Implemented Interfaces:
Serializable,Element,IdentifiableElement,Type
- Direct Known Subclasses:
EntityTypeImpl,PropertyTypeImpl,RelationTypeImpl
public class TypeImpl extends Object implements Type
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanabstractTypeprotected Map<Version,String>changelogstatic Map<Version,String>DEFAULT_CHANGELOG_MAPprotected Stringdescriptionprotected Set<String>extendedTypesprotected booleanfinalClassprotected Metadatametadataprotected Stringnameprotected Set<PropertyDefinition>propertiesprotected UUIDuuidprotected Versionversion-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.Type
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, EXTENDED_TYPES_PROPERTY, FINAL_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, VERSION_PROPERTY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccessType()Map<Version,String>getChangelog()Map<String,String>getChangelogWithVersionAsString()StringgetDescription()Set<String>getExtendedTypes()protected Class<?>getGenericClass(Type type)UUIDgetID()static TypegetInstance(Class<? extends Element> clz)MetadatagetMetadata()StringgetName()Set<PropertyDefinition>getProperties()StringgetTypeName()VersiongetVersion()StringgetVersionAsString()booleanisAbstract()booleanisFinal()protected Set<PropertyDefinition>retrieveListOfProperties(Class<?> clz)protected <E extends Element>
Set<String>retrieveSuperClasses(Class<? extends E> type, Class<E> baseClass, String topSuperClass)voidsetChangelog(Map<String,String> changelog)voidsetID(UUID uuid)voidsetMetadata(Metadata metadata)voidsetVersion(String version)
-
-
-
Field Detail
-
uuid
protected UUID uuid
-
metadata
protected Metadata metadata
-
name
protected String name
-
description
protected String description
-
version
protected Version version
-
abstractType
protected boolean abstractType
-
finalClass
protected boolean finalClass
-
properties
protected Set<PropertyDefinition> properties
-
-
Method Detail
-
retrieveSuperClasses
protected <E extends Element> Set<String> retrieveSuperClasses(Class<? extends E> type, Class<E> baseClass, String topSuperClass)
-
retrieveListOfProperties
protected Set<PropertyDefinition> retrieveListOfProperties(Class<?> clz)
-
getID
public UUID getID()
- Specified by:
getIDin interfaceIdentifiableElement- Specified by:
getIDin interfaceType
-
setID
public void setID(UUID uuid)
- Specified by:
setIDin interfaceIdentifiableElement- Specified by:
setIDin interfaceType
-
getMetadata
public Metadata getMetadata()
- Specified by:
getMetadatain interfaceIdentifiableElement- Specified by:
getMetadatain interfaceType
-
setMetadata
public void setMetadata(Metadata metadata)
- Specified by:
setMetadatain interfaceIdentifiableElement- Specified by:
setMetadatain interfaceType
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceType
-
getVersion
public Version getVersion()
- Specified by:
getVersionin interfaceType
-
getVersionAsString
public String getVersionAsString()
- Specified by:
getVersionAsStringin interfaceType
-
setVersion
public void setVersion(String version)
-
getChangelog
public Map<Version,String> getChangelog()
- Specified by:
getChangelogin interfaceType
-
getChangelogWithVersionAsString
public Map<String,String> getChangelogWithVersionAsString()
- Specified by:
getChangelogWithVersionAsStringin interfaceType
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceType
-
getExtendedTypes
public Set<String> getExtendedTypes()
- Specified by:
getExtendedTypesin interfaceType
-
getProperties
public Set<PropertyDefinition> getProperties()
- Specified by:
getPropertiesin interfaceType
-
getAccessType
public AccessType getAccessType()
- Specified by:
getAccessTypein interfaceType
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceElement
-
-