|
Kie Workbench - Common - Data Model API 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.workbench.common.services.datamodel.oracle.ProjectDataModelOracleImpl
org.kie.workbench.common.services.datamodel.oracle.PackageDataModelOracleImpl
@Portable public class PackageDataModelOracleImpl
Default implementation of DataModelOracle
| Field Summary | |
|---|---|
protected Map<String,String> |
filteredSuperTypes
|
protected Map<String,Set<Annotation>> |
filteredTypeAnnotations
|
protected Map<String,Map<String,Set<Annotation>>> |
filteredTypeFieldsAnnotations
|
| Fields inherited from class org.kie.workbench.common.services.datamodel.oracle.ProjectDataModelOracleImpl |
|---|
projectCollectionTypes, projectEventTypes, projectFieldParametersType, projectJavaEnumLists, projectMethodInformation, projectModelFields, projectName, projectSuperTypes, projectTypeAnnotations, projectTypeFieldsAnnotations, projectTypeSources |
| Constructor Summary | |
|---|---|
PackageDataModelOracleImpl()
|
|
| Method Summary | |
|---|---|
void |
addPackageDslActionSentences(List<org.drools.workbench.models.commons.shared.rule.DSLSentence> dslActionSentences)
|
void |
addPackageDslConditionSentences(List<org.drools.workbench.models.commons.shared.rule.DSLSentence> dslConditionSentences)
|
void |
addPackageGlobals(Map<String,String> packageGlobalTypes)
|
void |
addPackageGuvnorEnums(Map<String,String[]> dataEnumLists)
|
void |
filter()
|
void |
filter(org.drools.workbench.models.commons.shared.imports.Imports imports)
|
String[] |
getAllFactTypes()
Return all fact types available to the project, i.e. everything type defined within the project or externally imported |
String[] |
getConnectiveOperatorCompletions(String factType,
String fieldName)
Get the Operators applicable for Connective Constraints |
List<org.drools.workbench.models.commons.shared.rule.DSLSentence> |
getDSLActions()
|
List<org.drools.workbench.models.commons.shared.rule.DSLSentence> |
getDSLConditions()
|
DropDownData |
getEnums(String type,
String field)
Get enums for a Type and Field. |
DropDownData |
getEnums(String type,
String field,
Map<String,String> currentValueMap)
Get enums for a Type and Field where the enum list may depend upon the values of other fields. |
String[] |
getEnumValues(String factType,
String field)
For simple cases - where a list of values are known based on a field. |
String[] |
getExternalFactTypes()
Return all fact types that are external to the package, i.e. they need to be imported to be used |
String |
getFactNameFromType(String type)
Returns fact's name from class type |
String[] |
getFactTypes()
Returns fact types available for rule authoring, i.e. those within the same package and those that have been imported. |
String |
getFieldClassName(String modelClassName,
String fieldName)
|
String[] |
getFieldCompletions(FieldAccessorsAndMutators accessorOrMutator,
String factType)
|
String[] |
getFieldCompletions(String factType)
|
String[] |
getFieldCompletionsForGlobalVariable(String varName)
|
String |
getFieldType(String modelClassName,
String fieldName)
|
String[] |
getGlobalCollections()
|
String |
getGlobalVariable(String name)
|
String[] |
getGlobalVariables()
|
MethodInfo |
getMethodInfo(String factType,
String methodFullName)
Get information on a Method of a Fact Type |
List<MethodInfo> |
getMethodInfosForGlobalVariable(String varName)
|
List<String> |
getMethodNames(String factType)
Get a list of Methods for a Fact Type |
List<String> |
getMethodNames(String factType,
int paramCount)
Get a list of Methods for a Fact Type that have at least the specified number of parameters |
List<String> |
getMethodParams(String factType,
String methodNameWithParams)
Get a list of parameters for a Method of a Fact Type |
Map<String,ModelField[]> |
getModelFields()
|
String[] |
getOperatorCompletions(String factType,
String fieldName)
Get the Operators applicable Base Constraints |
String |
getParametricFieldType(String factType,
String fieldName)
Get the parametric type of a Field. |
String |
getSuperType(String factType)
Get the Super Type for a given FactType |
Set<Annotation> |
getTypeAnnotations(String factType)
Get the Annotations for a given FactType |
Map<String,Set<Annotation>> |
getTypeFieldsAnnotations(String factType)
Get the Fields Annotations for a given FactType |
org.guvnor.common.services.project.builder.model.TypeSource |
getTypeSource(String factType)
Return where a given FactType was defined |
boolean |
hasEnums(String qualifiedFactField)
|
boolean |
hasEnums(String factType,
String field)
|
boolean |
isDependentEnum(String factType,
String parentField,
String childField)
Check whether the childField is related to the parentField through a chain of enumeration dependencies. |
boolean |
isFactTypeAnEvent(String factType)
Check whether a given FactType is an Event for CEP purposes |
boolean |
isFactTypeRecognized(String factType)
Is the Fact Type known to the DataModelOracle |
boolean |
isGlobalVariable(String name)
|
void |
setPackageName(String packageName)
|
| Methods inherited from class org.kie.workbench.common.services.datamodel.oracle.ProjectDataModelOracleImpl |
|---|
addCollectionTypes, addEnumDefinitions, addEventTypes, addFactsAndFields, addFieldParametersType, addMethodInformation, addSuperTypes, addTypeAnnotations, addTypeFieldsAnnotations, addTypeSources, getProjectCollectionTypes, getProjectEventTypes, getProjectFieldParametersType, getProjectJavaEnumLists, getProjectMethodInformation, getProjectSuperTypes, getProjectTypeSources, getTypeAnnotations, getTypeFieldsAnnotations, setProjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,String> filteredSuperTypes
protected Map<String,Set<Annotation>> filteredTypeAnnotations
protected Map<String,Map<String,Set<Annotation>>> filteredTypeFieldsAnnotations
| Constructor Detail |
|---|
public PackageDataModelOracleImpl()
| Method Detail |
|---|
public String[] getFactTypes()
getFactTypes in interface ProjectDataModelOraclegetFactTypes in class ProjectDataModelOracleImplpublic String[] getAllFactTypes()
getAllFactTypes in interface PackageDataModelOraclepublic String[] getExternalFactTypes()
getExternalFactTypes in interface PackageDataModelOraclepublic String getFactNameFromType(String type)
getFactNameFromType in interface ProjectDataModelOraclegetFactNameFromType in class ProjectDataModelOracleImpltype -
public boolean isFactTypeRecognized(String factType)
isFactTypeRecognized in interface ProjectDataModelOracleisFactTypeRecognized in class ProjectDataModelOracleImplfactType -
public boolean isFactTypeAnEvent(String factType)
isFactTypeAnEvent in interface ProjectDataModelOracleisFactTypeAnEvent in class ProjectDataModelOracleImplfactType -
public org.guvnor.common.services.project.builder.model.TypeSource getTypeSource(String factType)
getTypeSource in interface ProjectDataModelOraclegetTypeSource in class ProjectDataModelOracleImplfactType -
public String getSuperType(String factType)
getSuperType in interface ProjectDataModelOraclegetSuperType in class ProjectDataModelOracleImplfactType -
public Set<Annotation> getTypeAnnotations(String factType)
getTypeAnnotations in interface ProjectDataModelOraclegetTypeAnnotations in class ProjectDataModelOracleImplfactType -
public Map<String,Set<Annotation>> getTypeFieldsAnnotations(String factType)
getTypeFieldsAnnotations in interface ProjectDataModelOraclegetTypeFieldsAnnotations in class ProjectDataModelOracleImplfactType -
public String[] getFieldCompletions(String factType)
getFieldCompletions in interface ProjectDataModelOraclegetFieldCompletions in class ProjectDataModelOracleImpl
public String[] getFieldCompletions(FieldAccessorsAndMutators accessorOrMutator,
String factType)
getFieldCompletions in interface ProjectDataModelOraclegetFieldCompletions in class ProjectDataModelOracleImpl
public String getFieldClassName(String modelClassName,
String fieldName)
getFieldClassName in interface ProjectDataModelOraclegetFieldClassName in class ProjectDataModelOracleImpl
public String getFieldType(String modelClassName,
String fieldName)
getFieldType in interface ProjectDataModelOraclegetFieldType in class ProjectDataModelOracleImplpublic Map<String,ModelField[]> getModelFields()
getModelFields in interface ProjectDataModelOraclegetModelFields in class ProjectDataModelOracleImpl
public String[] getOperatorCompletions(String factType,
String fieldName)
getOperatorCompletions in interface ProjectDataModelOraclegetOperatorCompletions in class ProjectDataModelOracleImplfactType - fieldName -
public String[] getConnectiveOperatorCompletions(String factType,
String fieldName)
getConnectiveOperatorCompletions in interface ProjectDataModelOraclegetConnectiveOperatorCompletions in class ProjectDataModelOracleImplfactType - fieldName -
public String[] getFieldCompletionsForGlobalVariable(String varName)
getFieldCompletionsForGlobalVariable in interface PackageDataModelOraclepublic List<MethodInfo> getMethodInfosForGlobalVariable(String varName)
getMethodInfosForGlobalVariable in interface PackageDataModelOraclepublic String getGlobalVariable(String name)
getGlobalVariable in interface PackageDataModelOraclepublic boolean isGlobalVariable(String name)
isGlobalVariable in interface PackageDataModelOraclepublic String[] getGlobalVariables()
getGlobalVariables in interface PackageDataModelOraclepublic String[] getGlobalCollections()
getGlobalCollections in interface PackageDataModelOraclepublic List<org.drools.workbench.models.commons.shared.rule.DSLSentence> getDSLConditions()
getDSLConditions in interface PackageDataModelOraclepublic List<org.drools.workbench.models.commons.shared.rule.DSLSentence> getDSLActions()
getDSLActions in interface PackageDataModelOracle
public DropDownData getEnums(String type,
String field)
getEnums in interface ProjectDataModelOraclegetEnums in class ProjectDataModelOracleImpl
public DropDownData getEnums(String type,
String field,
Map<String,String> currentValueMap)
getEnums in interface ProjectDataModelOraclegetEnums in class ProjectDataModelOracleImpl
public String[] getEnumValues(String factType,
String field)
getEnumValues in interface ProjectDataModelOraclegetEnumValues in class ProjectDataModelOracleImpl
public boolean hasEnums(String factType,
String field)
hasEnums in interface ProjectDataModelOraclehasEnums in class ProjectDataModelOracleImplpublic boolean hasEnums(String qualifiedFactField)
hasEnums in interface ProjectDataModelOraclehasEnums in class ProjectDataModelOracleImpl
public boolean isDependentEnum(String factType,
String parentField,
String childField)
isDependentEnum in interface ProjectDataModelOracleisDependentEnum in class ProjectDataModelOracleImplfactType - parentField - childField -
public List<String> getMethodNames(String factType)
getMethodNames in interface ProjectDataModelOraclegetMethodNames in class ProjectDataModelOracleImplfactType -
public List<String> getMethodNames(String factType,
int paramCount)
getMethodNames in interface ProjectDataModelOraclegetMethodNames in class ProjectDataModelOracleImplfactType - paramCount -
public List<String> getMethodParams(String factType,
String methodNameWithParams)
getMethodParams in interface ProjectDataModelOraclegetMethodParams in class ProjectDataModelOracleImplfactType - methodNameWithParams -
public MethodInfo getMethodInfo(String factType,
String methodFullName)
getMethodInfo in interface ProjectDataModelOraclegetMethodInfo in class ProjectDataModelOracleImplfactType - methodFullName -
public String getParametricFieldType(String factType,
String fieldName)
getParametricFieldType in interface ProjectDataModelOraclegetParametricFieldType in class ProjectDataModelOracleImplfactType - fieldName -
public void filter(org.drools.workbench.models.commons.shared.imports.Imports imports)
filter in interface PackageDataModelOraclepublic void filter()
filter in interface PackageDataModelOraclepublic void setPackageName(String packageName)
public void addPackageGuvnorEnums(Map<String,String[]> dataEnumLists)
public void addPackageDslConditionSentences(List<org.drools.workbench.models.commons.shared.rule.DSLSentence> dslConditionSentences)
public void addPackageDslActionSentences(List<org.drools.workbench.models.commons.shared.rule.DSLSentence> dslActionSentences)
public void addPackageGlobals(Map<String,String> packageGlobalTypes)
|
Kie Workbench - Common - Data Model API 6.0.0.Beta5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||