Package org.openmetadata.service
Class TypeRegistry
- java.lang.Object
-
- org.openmetadata.service.TypeRegistry
-
public class TypeRegistry extends Object
Type registry used for storing Types in OpenMetadata and customProperties of entity types.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,CustomProperty>CUSTOM_PROPERTIESCustom property map (fully qualified customPropertyName) to (customProperty)protected static Map<String,com.networknt.schema.JsonSchema>CUSTOM_PROPERTY_SCHEMASCustom property map (fully qualified customPropertyName) to (jsonSchema)protected static Map<String,Type>TYPESType map used for storing both Property Types and Entity Types
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddType(Type type)static StringgetCustomPropertyFQN(String entityType, String propertyName)static StringgetCustomPropertyFQNPrefix(String entityType)static StringgetPropertyName(String propertyFQN)com.networknt.schema.JsonSchemagetSchema(String entityType, String propertyName)static TypeRegistryinstance()voidremoveType(String typeName)voidvalidateCustomProperties(Type type)
-
-
-
Method Detail
-
instance
public static TypeRegistry instance()
-
addType
public void addType(Type type)
-
removeType
public void removeType(String typeName)
-
validateCustomProperties
public void validateCustomProperties(Type type)
-
getCustomPropertyFQN
public static String getCustomPropertyFQN(String entityType, String propertyName)
-
-