Class SetPropertiesRuleProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> aliases
      The data structure that stores the aliases.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAlias​(SetProperty annotation, java.lang.reflect.Field element)
      Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.
      SetPropertiesRule get()
      Provides an instance of Rule.
      void init​(SetProperty annotation, java.lang.reflect.Field element)
      Initializes the provider.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • aliases

        private final java.util.Map<java.lang.String,​java.lang.String> aliases
        The data structure that stores the aliases.
    • Constructor Detail

      • SetPropertiesRuleProvider

        public SetPropertiesRuleProvider()
    • Method Detail

      • addAlias

        public void addAlias​(SetProperty annotation,
                             java.lang.reflect.Field element)
        Adds a new alias attribute/property name; if the attribute name is not specified, the alias will be considered as property name identity.
        Parameters:
        annotation - the SetProperty reference.
        element - the annotated element reference.