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 Headerheaderprotected Stringnameprotected Set<PropertyDefinition>propertiesprotected Set<String>superClassesprotected Versionversion-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
CLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
HEADER_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.Type
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, TYPE_SUPERCLASSES_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()protected Class<?>getGenericClass(Type type)HeadergetHeader()static TypegetInstance(Class<? extends Element> clz)StringgetName()Set<PropertyDefinition>getProperties()Set<String>getSuperClasses()VersiongetVersion()StringgetVersionAsString()booleanisAbstract()protected Set<PropertyDefinition>retrieveListOfProperties(Class<?> type)protected <E extends Element>
Set<String>retrieveSuperClasses(Class<? extends E> type, Class<E> baseClass, String topSuperClass)voidsetChangelog(Map<String,String> changelog)voidsetHeader(Header header)voidsetVersion(String version)
-
-
-
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<?> type)
-
getHeader
public Header getHeader()
- Specified by:
getHeaderin interfaceIdentifiableElement
-
setHeader
public void setHeader(Header header)
- Specified by:
setHeaderin interfaceIdentifiableElement
-
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
-
getSuperClasses
public Set<String> getSuperClasses()
- Specified by:
getSuperClassesin interfaceType
-
getProperties
public Set<PropertyDefinition> getProperties()
- Specified by:
getPropertiesin interfaceType
-
getAccessType
public AccessType getAccessType()
- Specified by:
getAccessTypein interfaceType
-
-