|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.dynamic.IlrDynamicModelFactory
public class IlrDynamicModelFactory
Factory implementation for building an object model.
Constructor Summary | |
---|---|
IlrDynamicModelFactory()
Creates an object model factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ilog.rules.bom.mutable.IlrModelFactory |
---|
createCollectionDomain |
Constructor Detail |
---|
public IlrDynamicModelFactory()
Method Detail |
---|
public IlrMutableObjectModel getOrCreateModel()
getOrCreateModel
in interface IlrModelFactory
public IlrMutableClass createNestedClass(IlrMutableClass parentClass, String className)
createNestedClass
in interface IlrModelFactory
parentClass
- The class that will contain a new class.className
- The class name. It cannot contain '.' separators.
public IlrMutableClass createClass(IlrMutablePackage parentPackage, String className)
createClass
in interface IlrModelFactory
parentPackage
- The package that will contain the new class.className
- The class name. It cannot contain '.' separators.
public IlrMutableClass createClass(String className)
createClass
in interface IlrModelFactory
className
- The class name. It may contain '.' separators.
public IlrMutableClass createArrayClass(IlrType componentType)
createArrayClass
in interface IlrModelFactory
public IlrMutableClass createGenericDefinition(String className, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition
in interface IlrModelFactory
public IlrMutableClass createGenericDefinition(IlrMutablePackage pkg, String className, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition
in interface IlrModelFactory
public IlrMutableClass createNestedGenericDefinition(IlrMutableClass parentClass, String className, IlrMutableTypeVariable[] typeParameters)
createNestedGenericDefinition
in interface IlrModelFactory
public IlrMutableClass createGenericDefinition(Class clazz, IlrMutableTypeVariable[] typeParameters)
createGenericDefinition
in interface IlrModelFactory
public IlrMutableClass createBoundClass(IlrClass genericType, IlrType[] typeParameters)
createBoundClass
in interface IlrModelFactory
public IlrMutableClass createRawClass(Class clazz)
createRawClass
in interface IlrModelFactory
public IlrMutableClass createClass(Class aClass)
createClass
in interface IlrModelFactory
aClass
- The native class.
public IlrMutableAttribute createAttribute(IlrMutableClass aClass, String name)
createAttribute
in interface IlrModelFactory
aClass
- The declaring class of the attribute.name
- The name of the attribute.
public IlrMutableAttribute createRestrictedAttribute(IlrMutableClass aClass, IlrAttribute originAttribute)
createRestrictedAttribute
in interface IlrModelFactory
aClass
- The declaring class of the attribute.originAttribute
- The origin attribute.
ilog.rules.bom.IlrAttribute.isRestriction()
public IlrMutableConstructor createConstructor(IlrMutableClass aClass)
createConstructor
in interface IlrModelFactory
aClass
- The declaring class of the constructor.
public IlrMutableBoundedDomain createBoundedDomain()
IlrMutableBoundedDomain
methods.
createBoundedDomain
in interface IlrModelFactory
public IlrDomain createEnumeratedDomain(List values)
createEnumeratedDomain
in interface IlrModelFactory
values
- The values of the enumeration.
public IlrMutableDomainIntersection createDomainIntersection()
IlrMutableDomainIntersection
methods.
createDomainIntersection
in interface IlrModelFactory
public IlrMutableMethod createMethod(IlrMutableClass aClass, String methodName)
createMethod
in interface IlrModelFactory
aClass
- The declaring class of the method.
public IlrMutableMethod createBoundMethod(IlrMethod genericMethod, IlrType[] typeParameters)
createBoundMethod
in interface IlrModelFactory
public IlrMutableMethod createRawMethod(IlrMethod genericMethod)
createRawMethod
in interface IlrModelFactory
public IlrMutablePackage createPackage(String name)
createPackage
in interface IlrModelFactory
name
- An absolute name with '.' separators.
All the intermediary packages are created if needed.
public IlrMutablePackage createPackage(IlrMutablePackage parentPackage, String relativeName)
createPackage
in interface IlrModelFactory
parentPackage
- 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, String parameterName, IlrType type)
createParameter
in interface IlrModelFactory
member
- The member parametrized by the new parameter.parameterName
- The parameter name.type
- The type of the parameter.
IlrMethod
,
IlrIndexedComponentProperty
public IlrMutableParameter createParameter(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 IlrModelFactory
parameterName
- The parameter name.type
- The type of the parameter.
IlrMutableMemberWithParameter
public IlrProperties createProperties()
createProperties
in interface IlrModelFactory
public IlrMutableStaticReference createStaticReference(String name)
createStaticReference
in interface IlrModelFactory
name
- The name of the static reference.
public IlrMutableActualValue createActualValue()
createActualValue
in interface IlrModelFactory
public IlrMutablePatternDomain createPatternDomain()
IlrMutablePatternDomain
methods.
createPatternDomain
in interface IlrModelFactory
public IlrMutableType createEnum(IlrMutablePackage parentPackage, String name)
createEnum
in interface IlrModelFactory
parentPackage
- The package that will contain the new enum.name
- The enum name. It cannot contain '.' separators.
public IlrMutableAttribute createAttribute(IlrMutableClass aClass, Field field)
createAttribute
in interface IlrModelFactory
aClass
- 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, Constructor constructor)
createConstructor
in interface IlrModelFactory
aClass
- 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, Method method)
createMethod
in interface IlrModelFactory
aClass
- The declaring class.
It has to be the class referencing the native class declaring the native method.method
- The native method.
public IlrMutableTypeVariable createTypeVariable(String name)
createTypeVariable
in interface IlrModelFactory
name
- The name of the variable.public IlrWildcardType createWildcardType()
createWildcardType
in interface IlrModelFactory
public IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, String name)
createComponentProperty
in interface IlrModelFactory
aClass
- The declaring class of the component property.name
- The name of the component property.
public IlrMutableIndexedComponentProperty createIndexedComponentProperty(IlrMutableClass aClass, String name)
createIndexedComponentProperty
in interface IlrModelFactory
aClass
- The declaring class of the indexed component property.name
- The name of the indexed component property.
public IlrMutableComponentProperty createComponentProperty(IlrMutableClass aClass, PropertyDescriptor descriptor)
createComponentProperty
in interface IlrModelFactory
aClass
- 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, IndexedPropertyDescriptor descriptor)
createIndexedComponentProperty
in interface IlrModelFactory
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.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |