Class TypeRegistry


  • public class TypeRegistry
    extends Object
    Type registry used for storing Types in OpenMetadata and customProperties of entity types.
    • Field Detail

      • TYPES

        protected static final Map<String,​Type> TYPES
        Type map used for storing both Property Types and Entity Types
      • CUSTOM_PROPERTIES

        protected static final Map<String,​CustomProperty> CUSTOM_PROPERTIES
        Custom property map (fully qualified customPropertyName) to (customProperty)
      • CUSTOM_PROPERTY_SCHEMAS

        protected static final Map<String,​com.networknt.schema.JsonSchema> CUSTOM_PROPERTY_SCHEMAS
        Custom property map (fully qualified customPropertyName) to (jsonSchema)
    • Method Detail

      • addType

        public void addType​(Type type)
      • removeType

        public void removeType​(String typeName)
      • getSchema

        public com.networknt.schema.JsonSchema getSchema​(String entityType,
                                                         String propertyName)
      • validateCustomProperties

        public void validateCustomProperties​(Type type)
      • getCustomPropertyFQNPrefix

        public static String getCustomPropertyFQNPrefix​(String entityType)
      • getCustomPropertyFQN

        public static String getCustomPropertyFQN​(String entityType,
                                                  String propertyName)
      • getPropertyName

        public static String getPropertyName​(String propertyFQN)