Class StructContentType<T>

    • Constructor Detail

      • StructContentType

        public StructContentType​(java.lang.String identifier,
                                 java.lang.String name,
                                 java.lang.String description)
      • StructContentType

        protected StructContentType​(java.lang.String identifier,
                                    java.lang.String name)
    • Method Detail

      • addField

        public <M> void addField​(java.lang.String identifier,
                                 ContentType<M> contentType,
                                 java.lang.String name,
                                 java.lang.String desc,
                                 IMemberAccessor<M,​T> accessor)
      • addExtraAttribute

        @Deprecated
        public <M> void addExtraAttribute​(int atIndex,
                                          IAttribute<M> attribute)
        Deprecated.
      • getAccessorKeys

        public java.util.Map<IAccessorKey<?>,​? extends IDescribable> getAccessorKeys()
        Description copied from interface: IType
        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.

        Specified by:
        getAccessorKeys in interface IType<T>
        Overrides:
        getAccessorKeys in class ContentType<T>
        Returns:
        keys for the accessors defined for this type