public class OmTypeFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
ENTITY_TYPES_SET |
static Set<String> |
RELATIONSHIP_TYPES_SET |
| Constructor and Description |
|---|
OmTypeFilter(List<TypeDef> newTypeDefs,
List<AttributeTypeDef> attributeTypeDefs)
spin through all the types and populate the types that are relaevant to this omas.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,ClassificationDef> |
getClassificationDefsMap() |
Map<String,EntityDef> |
getEntityDefsMap() |
Map<String,EnumDef> |
getEnumDefsMap() |
Map<String,RelationshipDef> |
getRelationshipTypeDefsMap() |
String |
getTypeDescription(String typeName) |
public OmTypeFilter(List<TypeDef> newTypeDefs, List<AttributeTypeDef> attributeTypeDefs)
The types relevant to this omas are define in the arrays above. I suspect the scope of this is too big - for example we have Host, because it has a relationship to Location and we have Location because we are generating an asset. In each of thee cases we would not be able to generate the entity reference files if the types were not included in the generation
newTypeDefs - attributeTypeDefs - public Map<String,ClassificationDef> getClassificationDefsMap()
public Map<String,RelationshipDef> getRelationshipTypeDefsMap()
Copyright © 2018 ODPi. All rights reserved.