public class IlrDynamicModelFactory extends java.lang.Object implements IlrModelFactory
| Constructor and Description |
|---|
IlrDynamicModelFactory()
Creates an object model factory.
|
| 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 a 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.
|
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, creates one if needed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCollectionDomainpublic IlrDynamicModelFactory()
public IlrMutableObjectModel getOrCreateModel()
getOrCreateModel in interface IlrModelFactorypublic IlrMutableClass createNestedClass(IlrMutableClass parentClass, java.lang.String className)
createNestedClass in interface IlrModelFactoryparentClass - The class that will contain a new class.className - The class name. It cannot contain '.' separators.public IlrMutableClass createClass(IlrMutablePackage parentPackage, java.lang.String className)
createClass in interface IlrModelFactoryparentPackage - The package that will contain the new class.className - The class name. It cannot contain '.' separators.public IlrMutableClass createClass(java.lang.String className)
createClass in interface IlrModelFactoryclassName - The class name. It may contain '.' separators.public IlrMutableClass createArrayClass(IlrType componentType)
createArrayClass in interface IlrModelFactorypublic IlrMutableClass createGenericDefinition(java.lang.String className, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition in interface IlrModelFactorypublic IlrMutableClass createGenericDefinition(IlrMutablePackage pkg, java.lang.String className, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition in interface IlrModelFactorypublic IlrMutableClass createNestedGenericDefinition(IlrMutableClass parentClass, java.lang.String className, IlrMutableTypeVariable[] typeParameters)
createNestedGenericDefinition in interface IlrModelFactorypublic IlrMutableClass createGenericDefinition(java.lang.Class clazz, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition in interface IlrModelFactorypublic IlrMutableClass createBoundClass(IlrClass genericType, IlrType[] typeParameters)
createBoundClass in interface IlrModelFactorypublic IlrMutableClass createRawClass(java.lang.Class clazz)
createRawClass in interface IlrModelFactorypublic IlrMutableClass createClass(java.lang.Class aClass)
createClass in interface IlrModelFactoryaClass - The native class.public IlrMutableAttribute createAttribute(IlrMutableClass aClass, java.lang.String name)
createAttribute in interface IlrModelFactoryaClass - The declaring class of the attribute.name - The name of the attribute.public IlrMutableAttribute createRestrictedAttribute(IlrMutableClass aClass, IlrAttribute originAttribute)
createRestrictedAttribute in interface IlrModelFactoryaClass - The declaring class of the attribute.originAttribute - The origin attribute.ilog.rules.bom.IlrAttribute.isRestriction()public IlrMutableConstructor createConstructor(IlrMutableClass aClass)
createConstructor in interface IlrModelFactoryaClass - The declaring class of the constructor.public IlrMutableBoundedDomain createBoundedDomain()
IlrMutableBoundedDomain methods.createBoundedDomain in interface IlrModelFactorypublic IlrDomain createEnumeratedDomain(java.util.List values)
createEnumeratedDomain in interface IlrModelFactoryvalues - The values of the enumeration.public IlrMutableDomainIntersection createDomainIntersection()
IlrMutableDomainIntersection methods.createDomainIntersection in interface IlrModelFactorypublic IlrMutableMethod createMethod(IlrMutableClass aClass, java.lang.String methodName)
createMethod in interface IlrModelFactoryaClass - The declaring class of the method.public IlrMutableMethod createBoundMethod(IlrMethod genericMethod, IlrType[] typeParameters)
createBoundMethod in interface IlrModelFactorypublic IlrMutableMethod createRawMethod(IlrMethod genericMethod)
createRawMethod in interface IlrModelFactorypublic IlrMutablePackage createPackage(java.lang.String name)
createPackage in interface IlrModelFactoryname - An absolute name with '.' separators.
All the intermediary packages are created if needed.public IlrMutablePackage createPackage(IlrMutablePackage parentPackage, java.lang.String relativeName)
createPackage in interface IlrModelFactoryparentPackage - The parent package in which the package will be created.relativeName - The name of the package to create relative to the parent package.
The name may contain '.' separators. In this case, the intermediate packages are created as needed.
If the relativeName is null or " ", the parentPackage is returned.public IlrMutableParameter createParameter(IlrMutableMemberWithParameter member, java.lang.String parameterName, IlrType type)
createParameter in interface IlrModelFactorymember - The member parametrized by the new parameter.parameterName - The parameter name.type - The type of the parameter.IlrMethod,
IlrIndexedComponentPropertypublic IlrMutableParameter 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).createParameter in interface IlrModelFactoryparameterName - The parameter name.type - The type of the parameter.IlrMutableMemberWithParameterpublic IlrProperties createProperties()
createProperties in interface IlrModelFactorypublic IlrMutableStaticReference createStaticReference(java.lang.String name)
createStaticReference in interface IlrModelFactoryname - The name of the static reference.public IlrMutableActualValue createActualValue()
createActualValue in interface IlrModelFactorypublic IlrMutablePatternDomain createPatternDomain()
IlrMutablePatternDomain methods.createPatternDomain in interface IlrModelFactorypublic IlrMutableType createEnum(IlrMutablePackage parentPackage, java.lang.String name)
createEnum in interface IlrModelFactoryparentPackage - The package that will contain the new enum.name - The enum name. It cannot contain '.' separators.public IlrMutableAttribute createAttribute(IlrMutableClass aClass, java.lang.reflect.Field field)
createAttribute in interface IlrModelFactoryaClass - The declaring class.
It has to be the class referencing the native class declaring the native field.field - The native field.public IlrMutableConstructor createConstructor(IlrMutableClass aClass, java.lang.reflect.Constructor constructor)
createConstructor in interface IlrModelFactoryaClass - The declaring class.
It has to be the class referencing the native class declaring the native constructor.constructor - The native constructor.public IlrMutableMethod createMethod(IlrMutableClass aClass, java.lang.reflect.Method method)
createMethod in interface IlrModelFactoryaClass - The declaring class.
It has to be the class referencing the native class declaring the native method.method - The native method.public IlrMutableTypeVariable createTypeVariable(java.lang.String name)
createTypeVariable in interface IlrModelFactoryname - The name of the variable.public IlrWildcardType createWildcardType()
createWildcardType in interface IlrModelFactorypublic IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, java.lang.String name)
createComponentProperty in interface IlrModelFactoryaClass - The declaring class of the component property.name - The name of the component property.public IlrMutableIndexedComponentProperty createIndexedComponentProperty(IlrMutableClass aClass, java.lang.String name)
createIndexedComponentProperty in interface IlrModelFactoryaClass - The declaring class of the indexed component property.name - The name of the indexed component property.public IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, java.beans.PropertyDescriptor descriptor)
createComponentProperty in interface IlrModelFactoryaClass - The declaring class.
It has to be the class referencing the native class declaring the native property.descriptor - The native property descriptor.public IlrMutableIndexedComponentProperty createIndexedComponentProperty(IlrMutableClass aClass, java.beans.IndexedPropertyDescriptor descriptor)
createIndexedComponentProperty in interface IlrModelFactoryaClass - 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