public class TypeImpl extends Object implements Type
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abstractType |
protected Map<Version,String> |
changelog |
static Map<Version,String> |
DEFAULT_CHANGELOG_MAP |
protected String |
description |
protected Header |
header |
protected String |
name |
protected Set<PropertyDefinition> |
properties |
protected Set<String> |
superClasses |
protected Version |
version |
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, TYPE_SUPERCLASSES_PROPERTY, VERSION_PROPERTYHEADER_PROPERTYCLASS_PROPERTY, DATETIME_PATTERN, SUPERCLASSES_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
TypeImpl() |
protected |
TypeImpl(Class<? extends Element> clz) |
| Modifier and Type | Method and Description |
|---|---|
AccessType |
getAccessType() |
Map<Version,String> |
getChangelog() |
Map<String,String> |
getChangelogWithVersionAsString() |
String |
getDescription() |
protected Class<?> |
getGenericClass(Type type) |
Header |
getHeader() |
static Type |
getInstance(Class<? extends Element> clz) |
String |
getName() |
Set<PropertyDefinition> |
getProperties() |
Set<String> |
getSuperClasses() |
Version |
getVersion() |
String |
getVersionAsString() |
boolean |
isAbstract() |
protected Set<PropertyDefinition> |
retrieveListOfProperties(Class<?> type) |
protected <E extends Element> |
retrieveSuperClasses(Class<? extends E> type,
Class<E> baseClass,
String topSuperClass) |
void |
setChangelog(Map<String,String> changelog) |
void |
setHeader(Header header) |
void |
setVersion(String version) |
protected Header header
protected String name
protected String description
protected Version version
protected boolean abstractType
protected Set<PropertyDefinition> properties
protected <E extends Element> Set<String> retrieveSuperClasses(Class<? extends E> type, Class<E> baseClass, String topSuperClass)
protected Set<PropertyDefinition> retrieveListOfProperties(Class<?> type)
public Header getHeader()
getHeader in interface IdentifiableElementpublic void setHeader(Header header)
setHeader in interface IdentifiableElementpublic String getDescription()
getDescription in interface Typepublic Version getVersion()
getVersion in interface Typepublic String getVersionAsString()
getVersionAsString in interface Typepublic void setVersion(String version)
public Map<Version,String> getChangelog()
getChangelog in interface Typepublic Map<String,String> getChangelogWithVersionAsString()
getChangelogWithVersionAsString in interface Typepublic boolean isAbstract()
isAbstract in interface Typepublic Set<String> getSuperClasses()
getSuperClasses in interface Typepublic Set<PropertyDefinition> getProperties()
getProperties in interface Typepublic AccessType getAccessType()
getAccessType in interface TypeCopyright © 2022. All Rights Reserved.