public interface IlrModelFactory
| Modifier and Type | Method and Description |
|---|---|
IlrMutableActualValue |
createActualValue()
Creates an actual value.
|
IlrMutableClass |
createArrayClass(IlrType componentType) |
IlrMutableAttribute |
createAttribute(IlrMutableClass aClass,
java.lang.reflect.Field field)
Creates an attribute from a native field.
|
IlrMutableAttribute |
createAttribute(IlrMutableClass aClass,
java.lang.String name)
Creates an attribute.
|
IlrMutableClass |
createBoundClass(IlrClass genericType,
IlrType[] typeParameters) |
IlrMutableBoundedDomain |
createBoundedDomain()
Creates a bounded domain.
|
IlrMutableMethod |
createBoundMethod(IlrMethod genericMethod,
IlrType[] typeParameters) |
IlrMutableClass |
createClass(java.lang.Class aClass)
Creates a class from a native class.
|
IlrMutableClass |
createClass(IlrMutablePackage parentPackage,
java.lang.String className)
Creates a class in a package.
|
IlrMutableClass |
createClass(java.lang.String className)
Creates a class using an absolute name
|
IlrMutableCollectionDomain |
createCollectionDomain(int min,
int max)
Creates a collection domain.
|
IlrMutableComponentProperty |
createComponentProperty(IlrMutableClass aClass,
java.beans.PropertyDescriptor descriptor)
Creates a component property from a native property.
|
IlrMutableComponentProperty |
createComponentProperty(IlrMutableClass aClass,
java.lang.String name)
Creates a component property.
|
IlrMutableConstructor |
createConstructor(IlrMutableClass aClass)
Creates a constructor.
|
IlrMutableConstructor |
createConstructor(IlrMutableClass aClass,
java.lang.reflect.Constructor constructor)
Creates a constructor from a native constructor.
|
IlrMutableDomainIntersection |
createDomainIntersection()
Creates a domain intersection.
|
IlrMutableType |
createEnum(IlrMutablePackage parentPackage,
java.lang.String name)
Creates an enum.
|
IlrDomain |
createEnumeratedDomain(java.util.List values)
Creates an enumerated domain.
|
IlrMutableClass |
createGenericDefinition(java.lang.Class clazz,
IlrMutableTypeVariable[] typeParameters) |
IlrMutableClass |
createGenericDefinition(IlrMutablePackage pkg,
java.lang.String className,
IlrMutableTypeVariable[] typeParameters) |
IlrMutableClass |
createGenericDefinition(java.lang.String className,
IlrMutableTypeVariable[] typeParameters) |
IlrMutableIndexedComponentProperty |
createIndexedComponentProperty(IlrMutableClass aClass,
java.beans.IndexedPropertyDescriptor descriptor)
Creates an indexed component property from a native indexed property.
|
IlrMutableIndexedComponentProperty |
createIndexedComponentProperty(IlrMutableClass aClass,
java.lang.String name)
Creates an indexed component property.
|
IlrMutableMethod |
createMethod(IlrMutableClass aClass,
java.lang.reflect.Method method)
Creates a method from a native method.
|
IlrMutableMethod |
createMethod(IlrMutableClass aClass,
java.lang.String methodName)
Creates a method.
|
IlrMutableClass |
createNestedClass(IlrMutableClass parentClass,
java.lang.String className)
Creates a nested class, that is a class in a class.
|
IlrMutableClass |
createNestedGenericDefinition(IlrMutableClass parentClass,
java.lang.String className,
IlrMutableTypeVariable[] typeParameters) |
IlrMutablePackage |
createPackage(IlrMutablePackage parentPackage,
java.lang.String relativeName)
Creates or retrieves a package using a relative name.
|
IlrMutablePackage |
createPackage(java.lang.String name)
Creates or retrieves a package using an absolute name.
|
IlrMutableParameter |
createParameter(IlrMutableMemberWithParameter member,
java.lang.String parameterName,
IlrType type)
Creates a parameter.
|
IlrMutableParameter |
createParameter(java.lang.String parameterName,
IlrType type)
Creates a parameter.
|
IlrMutablePatternDomain |
createPatternDomain()
Creates a pattern domain.
|
IlrProperties |
createProperties()
Creates properties to be used as nested properties.
|
IlrMutableClass |
createRawClass(java.lang.Class clazz) |
IlrMutableMethod |
createRawMethod(IlrMethod genericMethod) |
IlrMutableAttribute |
createRestrictedAttribute(IlrMutableClass aClass,
IlrAttribute originAttribute)
Creates a restricted attribute.
|
IlrMutableStaticReference |
createStaticReference(java.lang.String name)
Creates a static reference.
|
IlrMutableTypeVariable |
createTypeVariable(java.lang.String name)
Creates a type variable.
|
IlrWildcardType |
createWildcardType()
Creates a wild card type.
|
IlrMutableObjectModel |
getOrCreateModel()
Returns a mutable object model, and creates one if needed.
|
IlrMutableObjectModel getOrCreateModel()
IlrMutablePackage createPackage(java.lang.String name)
name - An absolute name with '.' separators.
All the intermediary packages are created if needed.IlrMutablePackage createPackage(IlrMutablePackage parentPackage, java.lang.String relativeName)
parentPackage - The parent package in which the package will be created.relativeName - The name of the package to be created. It is relative to the parent package.
The name may contain '.' separators. In this case, the intermediary packages are created as needed.IlrMutableType createEnum(IlrMutablePackage parentPackage, java.lang.String name)
parentPackage - The package that will contain the new enum.name - The enum name. It cannot contain '.' separators.IlrMutableClass createClass(IlrMutablePackage parentPackage, java.lang.String className)
parentPackage - The package that will contain the new class.className - The class name. It cannot contain '.' separators.IlrMutableClass createClass(java.lang.String className)
className - The class name. It may contain '.' separators.IlrMutableClass createArrayClass(IlrType componentType)
IlrMutableClass createGenericDefinition(java.lang.String className, IlrMutableTypeVariable[] typeParameters)
IlrMutableClass createGenericDefinition(IlrMutablePackage pkg, java.lang.String className, IlrMutableTypeVariable[] typeParameters)
IlrMutableClass createNestedGenericDefinition(IlrMutableClass parentClass, java.lang.String className, IlrMutableTypeVariable[] typeParameters)
IlrMutableClass createGenericDefinition(java.lang.Class clazz, IlrMutableTypeVariable[] typeParameters)
IlrMutableClass createBoundClass(IlrClass genericType, IlrType[] typeParameters)
IlrMutableClass createRawClass(java.lang.Class clazz)
IlrMutableClass createNestedClass(IlrMutableClass parentClass, java.lang.String className)
parentClass - The class that will contain a new class.className - The class name. It cannot contain '.' separators.IlrMutableConstructor createConstructor(IlrMutableClass aClass)
aClass - The declaring class of the constructor.IlrMutableMethod createMethod(IlrMutableClass aClass, java.lang.String methodName)
aClass - The declaring class of the method.IlrMutableMethod createBoundMethod(IlrMethod genericMethod, IlrType[] typeParameters)
IlrMutableMethod createRawMethod(IlrMethod genericMethod)
IlrMutableParameter createParameter(IlrMutableMemberWithParameter member, java.lang.String parameterName, IlrType type)
member - The member parameterized by the new parameter.parameterName - The name of the parameter.type - The type of the parameter.IlrMethod,
IlrIndexedComponentPropertyIlrMutableParameter createParameter(java.lang.String parameterName, IlrType type)
IlrMutableParameter.setDeclaringMember(ilog.rules.bom.IlrMemberWithParameter)
and IlrMutableMemberWithParameter.addParameter(ilog.rules.bom.IlrParameter)
or IlrMutableMemberWithParameter.setParameters(java.util.List).parameterName - The name of the parameter.type - The type of the parameter.IlrMutableMemberWithParameterIlrMutableAttribute createAttribute(IlrMutableClass aClass, java.lang.String name)
aClass - The declaring class of the attribute.name - The name of the attribute.IlrMutableAttribute createRestrictedAttribute(IlrMutableClass aClass, IlrAttribute originAttribute)
aClass - The declaring class of the attribute.originAttribute - The origin attribute.ilog.rules.bom.IlrAttribute.isRestriction()IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, java.lang.String name)
aClass - The declaring class of the component property.name - The name of the component property.IlrMutableIndexedComponentProperty createIndexedComponentProperty(IlrMutableClass aClass, java.lang.String name)
aClass - The declaring class of the indexed component property.name - The name of the indexed component property.IlrMutableCollectionDomain createCollectionDomain(int min, int max)
min - The minimal number of elements in the collection.max - The maximum number of elements in the collection.IlrDomain createEnumeratedDomain(java.util.List values)
values - The values of the enumeration.IlrMutableBoundedDomain createBoundedDomain()
IlrMutableBoundedDomain methods.IlrMutablePatternDomain createPatternDomain()
IlrMutablePatternDomain methods.IlrMutableDomainIntersection createDomainIntersection()
IlrMutableDomainIntersection methods.IlrMutableStaticReference createStaticReference(java.lang.String name)
name - The name of the static reference.IlrMutableActualValue createActualValue()
IlrProperties createProperties()
IlrMutableTypeVariable createTypeVariable(java.lang.String name)
name - A String that represents the name of the variable.IlrWildcardType createWildcardType()
IlrMutableClass createClass(java.lang.Class aClass)
aClass - The native class.IlrMutableConstructor createConstructor(IlrMutableClass aClass, java.lang.reflect.Constructor constructor)
aClass - The declaring class.
It has to be the class referencing the native class, declaring the native constructor.constructor - The native constructor.IlrMutableMethod createMethod(IlrMutableClass aClass, java.lang.reflect.Method method)
aClass - The declaring class.
It has to be the class referencing the native class, declaring the native method.method - The native method.IlrMutableAttribute createAttribute(IlrMutableClass aClass, java.lang.reflect.Field field)
aClass - The declaring class.
It has to be the class referencing the native class, declaring the native field.field - The native field.IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, java.beans.PropertyDescriptor descriptor)
aClass - The declaring class.
It has to be the class referencing the native class, declaring the native property.descriptor - The native property descriptor.IlrMutableIndexedComponentProperty createIndexedComponentProperty(IlrMutableClass aClass, java.beans.IndexedPropertyDescriptor descriptor)
aClass - The declaring class.
It has to be the class referencing the native class, declaring the native indexed property.descriptor - The native indexed property descriptor.© Copyright IBM Corp. 1987, 2017