Class PropertyDeprecationHandler


  • @Deprecated(since="11.1")
    public class PropertyDeprecationHandler
    extends Object
    Deprecated.
    since 11.1, use PropertyCharacteristicHandler service instead
    Handler used to test if a specific property is marked as deprecated/removed and to get its fallback.
    Since:
    9.2
    • Field Detail

      • properties

        protected final Map<String,​Map<String,​String>> properties
        Deprecated.
        Deprecated/removed properties map, its mapping is:

        schemaName -> propertyXPath -> fallbackXPath

    • Constructor Detail

      • PropertyDeprecationHandler

        public PropertyDeprecationHandler​(Map<String,​Map<String,​String>> properties)
        Deprecated.
    • Method Detail

      • hasMarkedProperties

        public boolean hasMarkedProperties​(String schema)
        Deprecated.
        Returns:
        true if the input property has deprecated/removed property
      • getProperties

        public Set<String> getProperties​(String schema)
        Deprecated.
        Returned properties are a path to marked property.
        Returns:
        the deprecated/removed properties for input schema or an empty set if schema doesn't have marked properties
      • isMarked

        public boolean isMarked​(String schema,
                                String name)
        Deprecated.
        Returns:
        true if the input property is marked as deprecated/removed
      • getFallback

        public String getFallback​(String schema,
                                  String name)
        Deprecated.
        Returns:
        the fallback of input property, if it is marked as deprecated/removed and has a fallback