public class ProductCmptType extends Type
IProductCmptType.Type.AnnotatedElementMatcher<T extends Annotation>| Modifier and Type | Field and Description |
|---|---|
static String |
KIND_NAME
The name of the design time implementation class.
|
| Constructor and Description |
|---|
ProductCmptType(String name,
AnnotatedDeclaration annotatedDeclaration) |
| Modifier and Type | Method and Description |
|---|---|
ProductAssociation |
getAssociation(String name)
Returns the association with the given
name declared in this type or one of it's
super types. |
List<ProductAssociation> |
getAssociations()
Returns the type's associations including those defined in it's super types.
|
ProductAttribute |
getAttribute(String name)
Returns the attribute with the given
name declared in this type or one of it's
super types. |
List<ProductAttribute> |
getAttributes()
Returns a list containing the type's attributes including those defined in the type's super
types.
|
ProductAssociation |
getDeclaredAssociation(int index)
Returns the association at the given
index. |
ProductAssociation |
getDeclaredAssociation(String name)
Returns the association with the given
name declared in this type. |
List<ProductAssociation> |
getDeclaredAssociations()
Returns a list containing all associations declared in this type.
|
ProductAttribute |
getDeclaredAttribute(int index)
Returns the declared attribute at the given
index. |
ProductAttribute |
getDeclaredAttribute(String name)
Returns the attribute with the given
name declared in this type. |
List<ProductAttribute> |
getDeclaredAttributes()
Returns a list containing all attributes declared in this model type.
|
protected List<Method> |
getDeclaredMethods() |
TableUsage |
getDeclaredTableUsage(String name)
Returns the
TableUsage with the given name which is declared in this type. |
List<TableUsage> |
getDeclaredTableUsages()
Returns a list of
TableUsages which are declared in this type. |
Class<?> |
getGenerationDeclarationClass() |
Class<?> |
getGenerationJavaClass() |
Class<?> |
getGenerationJavaInterface() |
protected String |
getKindName() |
PolicyCmptType |
getPolicyCmptType()
Returns the policy component type which is configured by this product component type.
|
ProductCmptType |
getSuperType()
Returns this type's super type or
null if it has none. |
TableUsage |
getTableUsage(String name)
Returns the
TableUsage for the specified name. |
List<TableUsage> |
getTableUsages()
Returns a list of
TableUsages which are declared in this type or in any
super type. |
boolean |
hasDeclaredTableUsage(String name)
Returns whether the
TableUsage for the specified name is declared in
this type. |
boolean |
isAssociationDeclared(String name)
Returns whether the association with the given
name is declared in this type. |
boolean |
isAttributeDeclared(String name)
Returns whether the attribute with the given
name is declared in this type. |
boolean |
isChangingOverTime()
Returns whether this product component type is changing over time.
|
boolean |
isConfigurationForPolicyCmptType()
Returns whether this product component type is a configuration for a policy component type.
|
getAnnotatedDeclaration, getDeclarationClass, getJavaClass, getJavaInterface, getMessageHelper, getMessageKey, isAssociationPresent, isAttributePresent, isSuperTypePresent, searchDeclaredMethod, toStringcreateMessageHelper, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getNamepublic static final String KIND_NAME
public ProductCmptType(String name, AnnotatedDeclaration annotatedDeclaration)
protected String getKindName()
getKindName in class Typeprotected List<Method> getDeclaredMethods()
getDeclaredMethods in class Typepublic boolean isChangingOverTime()
true if it has generations else falsepublic boolean isConfigurationForPolicyCmptType()
true if this type configures a policy component type, false
if notpublic PolicyCmptType getPolicyCmptType()
NullPointerException.NullPointerException - if the product component type is not a configuration for a
policy component typeisConfigurationForPolicyCmptType()public TableUsage getTableUsage(String name)
TableUsage for the specified name. May look in super types if there is no
table usage in this type.name - The name of the table usageTableUsage with the specified nameIllegalArgumentException - if there is no table usage with the specified namepublic List<TableUsage> getDeclaredTableUsages()
TableUsages which are declared in this type. In contrast
to getTableUsages() this does not return table usages of super types.TableUsages declared in this typepublic TableUsage getDeclaredTableUsage(String name)
TableUsage with the given name which is declared in this type.
Any table usage defined in the super types will not be returned.name - The name of the TableUsageTableUsage declared in this type with the given nameIllegalArgumentException - if this type does not have a declared table usage with the
given namepublic boolean hasDeclaredTableUsage(String name)
TableUsage for the specified name is declared in
this type.public List<TableUsage> getTableUsages()
TableUsages which are declared in this type or in any
super type.TableUsages accessible in this product type.public Class<?> getGenerationJavaClass()
public Class<?> getGenerationJavaInterface()
public Class<?> getGenerationDeclarationClass()
public ProductCmptType getSuperType()
Typenull if it has none.getSuperType in interface IModelTypegetSuperType in class Typepublic ProductAttribute getDeclaredAttribute(int index)
Typeindex.getDeclaredAttribute in interface IModelTypegetDeclaredAttribute in class Typepublic ProductAttribute getDeclaredAttribute(String name)
Typename declared in this type. Attributes
defined in the type's super types are not returned.getDeclaredAttribute in interface IModelTypegetDeclaredAttribute in class Typename - the name of the attributeType.isAttributeDeclared(String)public List<ProductAttribute> getDeclaredAttributes()
TypegetDeclaredAttributes in interface IModelTypegetDeclaredAttributes in class Typepublic ProductAttribute getAttribute(String name)
Typename declared in this type or one of it's
super types.getAttribute in interface IModelTypegetAttribute in class Typepublic List<ProductAttribute> getAttributes()
TypegetAttributes in interface IModelTypegetAttributes in class Typepublic boolean isAttributeDeclared(String name)
Typename is declared in this type.
Attributes defined in the type's super types are not considered.isAttributeDeclared in class Typename - the name of the attributetrue if the attribute is declared in this type, false if
notpublic ProductAssociation getDeclaredAssociation(int index)
Typeindex. Associations defined in the type's
super types are not returned.getDeclaredAssociation in interface IModelTypegetDeclaredAssociation in class Typepublic ProductAssociation getDeclaredAssociation(String name)
Typename declared in this type. Associations
defined in the type's super types are not considered. The name could either be the singular
or the plural name.getDeclaredAssociation in interface IModelTypegetDeclaredAssociation in class Typename - the name of the associationType.isAssociationDeclared(String)public List<ProductAssociation> getDeclaredAssociations()
TypegetDeclaredAssociations in interface IModelTypegetDeclaredAssociations in class Typepublic boolean isAssociationDeclared(String name)
Typename is declared in this type.
Associations defined in the type's super types are not considered.isAssociationDeclared in class Typename - the name of the associationtrue if the association is declared in this type, false if
notType.isAssociationPresent(String)public ProductAssociation getAssociation(String name)
Typename declared in this type or one of it's
super types. The name could either be the singular or the plural name.getAssociation in interface IModelTypegetAssociation in class Typepublic List<ProductAssociation> getAssociations()
TypegetAssociations in interface IModelTypegetAssociations in class TypeCopyright © 2020. All rights reserved.