Class EntityDescriptorImpl

    • Method Detail

      • findAttribute

        public <T> java.util.Optional<AttributeDescriptor<T>> findAttribute​(java.lang.String name,
                                                                            boolean includeProtected)
        Find attribute based by name.
        Specified by:
        findAttribute in interface EntityDescriptor
        Type Parameters:
        T - value type
        Parameters:
        name - name of the attribute to search for
        includeProtected - true to allow search for protected fields (prefixed by _).
        Returns:
        optional found attribute descriptor
      • getAllAttributes

        public java.util.List<AttributeDescriptor<?>> getAllAttributes​(boolean includeProtected)
        List all attribute descriptors of given entity.
        Specified by:
        getAllAttributes in interface EntityDescriptor
        Parameters:
        includeProtected - when true then protected attributes are also included (prefixed by _).
        Returns:
        all attributes of entity (including protected or not)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object