Package org.w3.xlink

Class ResourceType.Builder<_B>

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

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

      • _parentBuilder

        protected final _B _parentBuilder
    • Constructor Detail

      • Builder

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

        public Builder​(_B _parentBuilder,
                       ResourceType _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 ResourceType> _P init​(_P _product)
      • addContent

        public ResourceType.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 ResourceType.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 ResourceType.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 ResourceType.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.
      • withType

        public ResourceType.Builder<_B> withType​(TypeType type)
        Sets the new value of "type" (any previous value will be replaced)
        Parameters:
        type - New value of the "type" property.
      • withRole

        public ResourceType.Builder<_B> withRole​(String role)
        Sets the new value of "role" (any previous value will be replaced)
        Parameters:
        role - New value of the "role" property.
      • withTitle

        public ResourceType.Builder<_B> withTitle​(String title)
        Sets the new value of "title" (any previous value will be replaced)
        Parameters:
        title - New value of the "title" property.
      • withLabel

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

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