@Portable public class FactModelTree extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FactModelTree.Type |
Constructor and Description |
---|
FactModelTree() |
FactModelTree(String factName,
String fullPackage,
Map<String,String> simpleProperties,
Map<String,List<String>> genericTypesMap)
Call this constructor to have a
FactModelTree with UNDEFINED Type |
FactModelTree(String factName,
String fullPackage,
Map<String,String> simpleProperties,
Map<String,List<String>> genericTypesMap,
FactModelTree.Type type)
Call this constructor to specify the
FactModelTree ' Type |
Modifier and Type | Method and Description |
---|---|
void |
addExpandableProperty(String propertyName,
String propertyType) |
void |
addSimpleProperty(String propertyName,
String propertyType) |
Map<String,String> |
getExpandableProperties() |
String |
getFactName() |
String |
getFullPackage() |
List<String> |
getGenericTypeInfo(String propertyName)
Returns the generic type info of the given property
|
Map<String,String> |
getSimpleProperties() |
FactModelTree.Type |
getType() |
boolean |
isSimple() |
void |
removeSimpleProperty(String propertyName) |
void |
setSimple(boolean simple) |
String |
toString() |
public FactModelTree()
public FactModelTree(String factName, String fullPackage, Map<String,String> simpleProperties, Map<String,List<String>> genericTypesMap)
FactModelTree
with UNDEFINED Type
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,String> simpleProperties, Map<String,List<String>> genericTypesMap, FactModelTree.Type type)
FactModelTree
' Type
factName
- fullPackage
- simpleProperties
- genericTypesMap
- the generic type info, in the format {collection_class_name}#{generic_type}: ex "java.util.List#com.Book"type
- public String getFactName()
public String getFullPackage()
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()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.