Class FieldClassDescriptor

  • All Implemented Interfaces:
    ClassDescriptor

    public class FieldClassDescriptor
    extends AbstractClassDescriptor
    Creates DN and attribute mutators for the Fields on a type.
    Author:
    Middleware Services
    • Constructor Detail

      • FieldClassDescriptor

        public FieldClassDescriptor()
    • Method Detail

      • initialize

        public void initialize​(java.lang.Class<?> type)
        Description copied from interface: ClassDescriptor
        Prepare this class descriptor for use.
        Parameters:
        type - of object to describe
      • getDeclaredFields

        protected java.util.Map<java.lang.String,​java.lang.reflect.Field> getDeclaredFields​(java.lang.Class<?> type)
        Returns a map of all the field names to the field.
        Parameters:
        type - to read declared fields from
        Returns:
        map of field names to field
      • createDnValueMutator

        protected DnValueMutator createDnValueMutator​(java.lang.reflect.Field field)
        Returns a dn value mutator for the supplied field.
        Parameters:
        field - to create dn value mutator for
        Returns:
        dn value mutator
      • createAttributeValueMutator

        protected AttributeValueMutator createAttributeValueMutator​(java.lang.reflect.Field field,
                                                                    Attribute attribute)
        Returns an attribute value mutator for the supplied field.
        Parameters:
        field - to create attribute value mutator for
        attribute - attribute containing metadata
        Returns:
        attribute value mutator