| Modifier and Type | Class and Description |
|---|---|
static class |
YComposedType.YModelConstructor
This is a model constructor object.
|
| Constructor and Description |
|---|
YComposedType(YNamespace container,
String code,
String superTypeCode,
String jaloClassName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConstructorSignatures(List<ModelTagListener.ModelDataConstructor> signatures)
Add (to an existing list) another list which contains the defined constructor signatures.
|
protected boolean |
allowMetaTypeInheritanceFrom(YComposedType superType) |
boolean |
equals(Object type) |
Set<YComposedType> |
getAllSubtypes()
Returns all subtypes.
|
List<YComposedType> |
getAllSuperTypes()
Returns all super type starting with the root type.
|
YAttributeDescriptor |
getAttribute(String qualifier)
Returns for the given
qualifier the YAttributeDescriptor which is defined at this current
YComposedType. |
YAttributeDescriptor |
getAttributeIncludingSuperType(String qualifier)
Returns for the given
qualifier the YAttributeDescriptor. |
Set<YAttributeDescriptor> |
getAttributes() |
Map<String,String> |
getCustomProps()
Overwritten to merge all super type properties.
|
Set<YAttributeDescriptor> |
getDeclaredAttributes() |
protected String |
getDefaultMetaTypeCode() |
YDeployment |
getDeployment() |
String |
getDeploymentName() |
Class |
getJaloClass() |
String |
getJaloClassName() |
protected Class |
getJaloOnlyClass() |
String |
getJavaClassName() |
YComposedType |
getMetaType() |
Map<String,String> |
getOwnCustomProps() |
YDeployment |
getOwnDeployment() |
Class |
getOwnJaloClass() |
String |
getOwnJaloClassName() |
Set<YAttributeDescriptor> |
getRedeclaredAttributes() |
Set<YComposedType> |
getSubtypes() |
YComposedType |
getSuperType() |
String |
getSuperTypeCode() |
String |
getTypeDescription()
gets global meta information for a type
|
List<YComposedType.YModelConstructor> |
getYModelConstructors() |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isAssignableFrom(YType type) |
boolean |
isGenerateModel()
Returns
true if the model generation (items.xml - tag <model>) is enabled. |
protected boolean |
isJaloClassAbstract() |
boolean |
isJaloOnly() |
boolean |
isLegacyPersistence() |
boolean |
isSingleton() |
boolean |
isViewType() |
void |
setAbstract(boolean isAbstract) |
void |
setDeploymentName(String deploymentName) |
void |
setGenerateModel(boolean generateModel)
Setter for generate model.
|
void |
setJaloClassName(String jaloClassName) |
void |
setJaloOnly(boolean isJaloOnly) |
void |
setLegacyPersistence(boolean legacyPersistence) |
void |
setSingleton(boolean isSingleton) |
void |
setTypeDescription(String typeDescription)
sets global meta information for a type
|
void |
validate()
Validates the element.
|
getCode, getDefaultValueDefinition, setDefaultValueDefinition, toStringaddCustomProperties, addCustomProperty, getMetaTypeCode, isAutocreate, isGenerate, resetCaches, setAutocreate, setGenerate, setMetaTypeCodegetLoaderInfo, getNamespace, getTypeSystem, setLoaderInfopublic YComposedType(YNamespace container, String code, String superTypeCode, String jaloClassName)
protected String getDefaultMetaTypeCode()
getDefaultMetaTypeCode in class YTypeSystemElementpublic YComposedType getMetaType()
getMetaType in class YTypeSystemElementprotected boolean allowMetaTypeInheritanceFrom(YComposedType superType)
public Map<String,String> getCustomProps()
getOwnCustomProps() to get just the ones declared at
this type.getCustomProps in class YTypeSystemElementpublic void validate()
YNameSpaceElementpublic List<YComposedType.YModelConstructor> getYModelConstructors()
public boolean isAbstract()
public void setAbstract(boolean isAbstract)
public boolean isSingleton()
public void setSingleton(boolean isSingleton)
public String getJaloClassName()
public String getOwnJaloClassName()
protected boolean isJaloClassAbstract()
public void setTypeDescription(String typeDescription)
public String getTypeDescription()
public boolean isViewType()
public Class getJaloClass()
public Class getOwnJaloClass()
public void setJaloClassName(String jaloClassName)
public String getSuperTypeCode()
public YComposedType getSuperType()
protected Class getJaloOnlyClass()
public boolean isJaloOnly()
public void setJaloOnly(boolean isJaloOnly)
public String getDeploymentName()
public void setDeploymentName(String deploymentName)
public YDeployment getDeployment()
public YDeployment getOwnDeployment()
public YAttributeDescriptor getAttribute(String qualifier)
qualifier the YAttributeDescriptor which is defined at this current
YComposedType.qualifier - the attribute qualifiernull if such YAttributeDescriptor does not exists (or was defined at a supertype. Use then
getAttributeIncludingSuperType(String)public YAttributeDescriptor getAttributeIncludingSuperType(String qualifier)
qualifier the YAttributeDescriptor. It doesn't matter if the attribute was
defined at the current YComposedType or any supertype.qualifier - the attribute qualifiernull if the given qualifier does not exists at the current type or any supertypepublic Set<YComposedType> getSubtypes()
public List<YComposedType> getAllSuperTypes()
public Set<YComposedType> getAllSubtypes()
public Set<YAttributeDescriptor> getAttributes()
public Set<YAttributeDescriptor> getDeclaredAttributes()
public Set<YAttributeDescriptor> getRedeclaredAttributes()
public String getJavaClassName()
getJavaClassName in class YTypepublic boolean isGenerateModel()
true if the model generation (items.xml - tag <model>) is enabled.false otherwise.public void setGenerateModel(boolean generateModel)
generateModel - the valuepublic void addConstructorSignatures(List<ModelTagListener.ModelDataConstructor> signatures)
public boolean isLegacyPersistence()
public void setLegacyPersistence(boolean legacyPersistence)
public boolean isAssignableFrom(YType type)
isAssignableFrom in class YTypeCopyright © 2017 SAP SE. All Rights Reserved.