Interface IType<T>

    • Method Detail

      • getAccessorKeys

        Map<IAccessorKey<?>,​? extends IDescribable> getAccessorKeys()
        Get keys for the accessors that this type knows of. Note that the returned accessors does not necessarily cover all possible data from the items of this type, and that it is always possible to define additional accessors that get or calculate values from the items in non-standard ways.

        Should only be used for low level type inspection. Iterators etc. should use a collection of predefined attributes.

        Returns:
        keys for the accessors defined for this type
      • hasAttribute

        boolean hasAttribute​(ICanonicalAccessorFactory<?> attribute)
        Tell if attribute can return an accessor for this type. This method is semantically equivalent to attribute.getAccessor(type) != null, but may be cheaper.
        Parameters:
        attribute - attribute to check
        Returns:
        true if the attribute can return an accessor for this type, false if not
      • getAccessor

        <M> IMemberAccessor<M,​T> getAccessor​(IAccessorKey<M> attribute)
        Internal low-level mechanism for retrieving a member accessor for a type, or null if not available.

        This is only intended to be used by implementors of IAccessorFactory. All other usage should be replaced with ICanonicalAccessorFactory.getAccessor(IType) call to pre-defined accessors.

        Type Parameters:
        M - accessor value type
        Parameters:
        attribute - the identifier for the field
        Returns:
        a member accessor
      • getIdentifier

        String getIdentifier()
        String identifying the type. It must never be localized and it should only contain characters that are safe to use in various configuration files, e.g. in XML.
        Returns:
        type identifier