@Portable public class FactModelTree extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FactModelTree.PropertyTypeName
Nested DTO which holds a Property name.
|
static class |
FactModelTree.Type |
| Constructor and Description |
|---|
FactModelTree() |
FactModelTree(String factName,
String fullPackage,
Map<String,FactModelTree.PropertyTypeName> simpleProperties,
Map<String,List<String>> genericTypesMap)
Call this constructor to have a
FactModelTree with UNDEFINED Type. |
FactModelTree(String factName,
String fullPackage,
Map<String,FactModelTree.PropertyTypeName> simpleProperties,
Map<String,List<String>> genericTypesMap,
FactModelTree.Type type)
Call this constructor to specify the
FactModelTree' Type. |
FactModelTree(String factName,
String fullPackage,
Map<String,FactModelTree.PropertyTypeName> simpleProperties,
Map<String,List<String>> genericTypesMap,
String typeName)
Call this constructor to have a
FactModelTree with UNDEFINED Type and the type (eg. |
| Modifier and Type | Method and Description |
|---|---|
void |
addExpandableProperty(String propertyName,
String propertyType) |
void |
addSimpleProperty(String propertyName,
FactModelTree.PropertyTypeName propertyTypeName) |
FactModelTree |
cloneFactModelTree() |
Map<String,String> |
getExpandableProperties() |
String |
getFactName() |
String |
getFullPackage() |
String |
getFullTypeName() |
List<String> |
getGenericTypeInfo(String propertyName)
Returns the generic type info of the given property
|
Map<String,List<String>> |
getGenericTypesMap() |
String |
getImportPrefix() |
Map<String,FactModelTree.PropertyTypeName> |
getSimpleProperties() |
FactModelTree.Type |
getType() |
String |
getTypeName() |
boolean |
isSimple() |
static FactModelTree |
ofDMN(String factName,
String importPrefix,
Map<String,FactModelTree.PropertyTypeName> simpleProperties,
Map<String,List<String>> genericTypesMap,
String typeName,
FactModelTree.Type type)
Static factory method to be used in DMN context.
|
static FactModelTree |
ofDMO(String factName,
String fullPackage,
Map<String,FactModelTree.PropertyTypeName> simpleProperties,
Map<String,List<String>> genericTypesMap,
String typeName)
Static factory method to be used in DMO (Rule) context.
|
static FactModelTree |
ofSimpleDMN(String factName,
String importPrefix,
String simplePropertyType,
Map<String,List<String>> genericTypeInfoMap,
String typeName,
FactModelTree.Type type)
Static factory method to be used in DMN context, to create a Simple Type FactModelTree.
|
static FactModelTree |
ofSimpleDMO(String factName,
String fullPackage,
String simplePropertyFullClass,
String typeName)
Static factory method to be used in DMO (Rule) context, to create a Simple Type FactModelTree.
|
void |
removeSimpleProperty(String propertyName) |
void |
setSimple(boolean simple) |
String |
toString() |
public FactModelTree()
public FactModelTree(String factName, String fullPackage, Map<String,FactModelTree.PropertyTypeName> simpleProperties, Map<String,List<String>> genericTypesMap)
FactModelTree with UNDEFINED Type. RULE Test Scenario specific.factName - fullPackage - simpleProperties - genericTypesMap - the generic type info, in the format {collection_class_name}#{generic_type}: ex "java.util.List#com.Book"public FactModelTree(String factName, String fullPackage, Map<String,FactModelTree.PropertyTypeName> simpleProperties, Map<String,List<String>> genericTypesMap, String typeName)
FactModelTree with UNDEFINED Type and the type (eg. ClassName)
differs from the factName (A case is for nested classes eg Class.Nested as FactName and Class$Nested as className. RULE Test Scenario specific.factName - fullPackage - simpleProperties - genericTypesMap - the generic type info, in the format {collection_class_name}#{generic_type}: ex "java.util.List#com.Book"typeName - The typeName of the fact (the className)public FactModelTree(String factName, String fullPackage, Map<String,FactModelTree.PropertyTypeName> simpleProperties, Map<String,List<String>> genericTypesMap, FactModelTree.Type type)
FactModelTree' Type. DMN Test Scenario specific.factName - fullPackage - simpleProperties - genericTypesMap - the generic type info, in the format {collection_class_name}#{generic_type}: ex "java.util.List#com.Book"type - public static FactModelTree ofDMO(String factName, String fullPackage, Map<String,FactModelTree.PropertyTypeName> simpleProperties, Map<String,List<String>> genericTypesMap, String typeName)
factName - fullPackage - simpleProperties - genericTypesMap - typeName - public static FactModelTree ofSimpleDMO(String factName, String fullPackage, String simplePropertyFullClass, String typeName)
factName - fullPackage - simplePropertyFullClass - typeName - public static FactModelTree ofDMN(String factName, String importPrefix, Map<String,FactModelTree.PropertyTypeName> simpleProperties, Map<String,List<String>> genericTypesMap, String typeName, FactModelTree.Type type)
factName - simpleProperties - genericTypesMap - typeName - type - public static FactModelTree ofSimpleDMN(String factName, String importPrefix, String simplePropertyType, Map<String,List<String>> genericTypeInfoMap, String typeName, FactModelTree.Type type)
factName - simplePropertyType - genericTypeInfoMap - typeName - type - public String getFactName()
public String getFullPackage()
public Map<String,FactModelTree.PropertyTypeName> getSimpleProperties()
public void addSimpleProperty(String propertyName, FactModelTree.PropertyTypeName propertyTypeName)
public List<String> getGenericTypeInfo(String propertyName)
propertyName - List of generic types, or an empty onepublic void removeSimpleProperty(String propertyName)
public boolean isSimple()
public void setSimple(boolean simple)
public FactModelTree.Type getType()
public String getTypeName()
public String getFullTypeName()
public String getImportPrefix()
public FactModelTree cloneFactModelTree()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.