Class ObjectType.Builder<_B>

  • All Implemented Interfaces:
    com.kscs.util.jaxb.Buildable
    Enclosing class:
    ObjectType

    public static class ObjectType.Builder<_B>
    extends Object
    implements com.kscs.util.jaxb.Buildable
    • Field Detail

      • _parentBuilder

        protected final _B _parentBuilder
      • _storedValue

        protected final ObjectType _storedValue
    • Constructor Detail

      • Builder

        public Builder​(_B _parentBuilder,
                       ObjectType _other,
                       boolean _copy)
      • Builder

        public Builder​(_B _parentBuilder,
                       ObjectType _other,
                       boolean _copy,
                       com.kscs.util.jaxb.PropertyTree _propertyTree,
                       com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse)
    • Method Detail

      • end

        public _B end()
      • init

        protected <_P extends ObjectType> _P init​(_P _product)
      • addContent

        public ObjectType.Builder<_B> addContent​(Iterable<?> content)
        Adds the given items to the value of "content"
        Parameters:
        content - Items to add to the value of the "content" property
      • withContent

        public ObjectType.Builder<_B> withContent​(Iterable<?> content)
        Sets the new value of "content" (any previous value will be replaced)
        Parameters:
        content - New value of the "content" property.
      • addContent

        public ObjectType.Builder<_B> addContent​(Object... content)
        Adds the given items to the value of "content"
        Parameters:
        content - Items to add to the value of the "content" property
      • withContent

        public ObjectType.Builder<_B> withContent​(Object... content)
        Sets the new value of "content" (any previous value will be replaced)
        Parameters:
        content - New value of the "content" property.
      • withId

        public ObjectType.Builder<_B> withId​(String id)
        Sets the new value of "id" (any previous value will be replaced)
        Parameters:
        id - New value of the "id" property.
      • withMimeType

        public ObjectType.Builder<_B> withMimeType​(String mimeType)
        Sets the new value of "mimeType" (any previous value will be replaced)
        Parameters:
        mimeType - New value of the "mimeType" property.
      • withEncoding

        public ObjectType.Builder<_B> withEncoding​(String encoding)
        Sets the new value of "encoding" (any previous value will be replaced)
        Parameters:
        encoding - New value of the "encoding" property.
      • build

        public ObjectType build()
        Specified by:
        build in interface com.kscs.util.jaxb.Buildable