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) |
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 |
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, 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 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)
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 Typepublic 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 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 Typepublic List<ProductAssociation> getDeclaredAssociations()
TypegetDeclaredAssociations in interface IModelTypegetDeclaredAssociations in class Typepublic 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 © 2017. All rights reserved.