Class ObjectType.Builder<_B>

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

public static class ObjectType.Builder<_B> extends Type.Builder<_B> implements com.kscs.util.jaxb.Buildable
  • Constructor Details

    • 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 Details

    • init

      protected <_P extends ObjectType> _P init(_P _product)
    • addAttributes

      public ObjectType.Builder<_B> addAttributes(Iterable<? extends Attribute> attributes)
      Adds the given items to the value of "attributes"
      Parameters:
      attributes - Items to add to the value of the "attributes" property
    • withAttributes

      public ObjectType.Builder<_B> withAttributes(Iterable<? extends Attribute> attributes)
      Sets the new value of "attributes" (any previous value will be replaced)
      Parameters:
      attributes - New value of the "attributes" property.
    • addAttributes

      public ObjectType.Builder<_B> addAttributes(Attribute... attributes)
      Adds the given items to the value of "attributes"
      Parameters:
      attributes - Items to add to the value of the "attributes" property
    • withAttributes

      public ObjectType.Builder<_B> withAttributes(Attribute... attributes)
      Sets the new value of "attributes" (any previous value will be replaced)
      Parameters:
      attributes - New value of the "attributes" property.
    • addAttributes

      public Attribute.Builder<? extends ObjectType.Builder<_B>> addAttributes()
      Returns a new builder to build an additional value of the "Attributes" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Attributes" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addCompositions

      public ObjectType.Builder<_B> addCompositions(Iterable<? extends Composition> compositions)
      Adds the given items to the value of "compositions"
      Parameters:
      compositions - Items to add to the value of the "compositions" property
    • withCompositions

      public ObjectType.Builder<_B> withCompositions(Iterable<? extends Composition> compositions)
      Sets the new value of "compositions" (any previous value will be replaced)
      Parameters:
      compositions - New value of the "compositions" property.
    • addCompositions

      public ObjectType.Builder<_B> addCompositions(Composition... compositions)
      Adds the given items to the value of "compositions"
      Parameters:
      compositions - Items to add to the value of the "compositions" property
    • withCompositions

      public ObjectType.Builder<_B> withCompositions(Composition... compositions)
      Sets the new value of "compositions" (any previous value will be replaced)
      Parameters:
      compositions - New value of the "compositions" property.
    • addCompositions

      public Composition.Builder<? extends ObjectType.Builder<_B>> addCompositions()
      Returns a new builder to build an additional value of the "Compositions" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Compositions" property. Use ReferableElement.Builder.end() to return to the current builder.
    • addReferences

      public ObjectType.Builder<_B> addReferences(Iterable<? extends Reference> references)
      Adds the given items to the value of "references"
      Parameters:
      references - Items to add to the value of the "references" property
    • withReferences

      public ObjectType.Builder<_B> withReferences(Iterable<? extends Reference> references)
      Sets the new value of "references" (any previous value will be replaced)
      Parameters:
      references - New value of the "references" property.
    • addReferences

      public ObjectType.Builder<_B> addReferences(Reference... references)
      Adds the given items to the value of "references"
      Parameters:
      references - Items to add to the value of the "references" property
    • withReferences

      public ObjectType.Builder<_B> withReferences(Reference... references)
      Sets the new value of "references" (any previous value will be replaced)
      Parameters:
      references - New value of the "references" property.
    • addReferences

      public Reference.Builder<? extends ObjectType.Builder<_B>> addReferences()
      Returns a new builder to build an additional value of the "References" property. Use ReferableElement.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "References" property. Use ReferableElement.Builder.end() to return to the current builder.
    • withExtends

      public ObjectType.Builder<_B> withExtends(ElementRef _extends)
      Sets the new value of "_extends" (any previous value will be replaced)
      Overrides:
      withExtends in class Type.Builder<_B>
      Parameters:
      _extends - New value of the "_extends" property.
    • withExtends

      public ElementRef.Builder<? extends ObjectType.Builder<_B>> withExtends()
      Returns the existing builder or a new builder to build the value of the "_extends" property. Use ElementRef.Builder.end() to return to the current builder.
      Overrides:
      withExtends in class Type.Builder<_B>
      Returns:
      A new builder to build the value of the "_extends" property. Use ElementRef.Builder.end() to return to the current builder.
    • addConstraints

      public ObjectType.Builder<_B> addConstraints(Iterable<? extends Constraint> constraints)
      Adds the given items to the value of "constraints"
      Overrides:
      addConstraints in class Type.Builder<_B>
      Parameters:
      constraints - Items to add to the value of the "constraints" property
    • addConstraints

      public ObjectType.Builder<_B> addConstraints(Constraint... constraints)
      Adds the given items to the value of "constraints"
      Overrides:
      addConstraints in class Type.Builder<_B>
      Parameters:
      constraints - Items to add to the value of the "constraints" property
    • withConstraints

      public ObjectType.Builder<_B> withConstraints(Iterable<? extends Constraint> constraints)
      Sets the new value of "constraints" (any previous value will be replaced)
      Overrides:
      withConstraints in class Type.Builder<_B>
      Parameters:
      constraints - New value of the "constraints" property.
    • withConstraints

      public ObjectType.Builder<_B> withConstraints(Constraint... constraints)
      Sets the new value of "constraints" (any previous value will be replaced)
      Overrides:
      withConstraints in class Type.Builder<_B>
      Parameters:
      constraints - New value of the "constraints" property.
    • withAbstract

      public ObjectType.Builder<_B> withAbstract(Boolean _abstract)
      Sets the new value of "_abstract" (any previous value will be replaced)
      Overrides:
      withAbstract in class Type.Builder<_B>
      Parameters:
      _abstract - New value of the "_abstract" property.
    • withVodmlId

      public ObjectType.Builder<_B> withVodmlId(String vodmlId)
      Sets the new value of "vodmlId" (any previous value will be replaced)
      Overrides:
      withVodmlId in class Type.Builder<_B>
      Parameters:
      vodmlId - New value of the "vodmlId" property.
    • withName

      public ObjectType.Builder<_B> withName(String name)
      Sets the new value of "name" (any previous value will be replaced)
      Overrides:
      withName in class Type.Builder<_B>
      Parameters:
      name - New value of the "name" property.
    • withDescription

      public ObjectType.Builder<_B> withDescription(String description)
      Sets the new value of "description" (any previous value will be replaced)
      Overrides:
      withDescription in class Type.Builder<_B>
      Parameters:
      description - New value of the "description" property.
    • withId

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

      public ObjectType build()
      Specified by:
      build in interface com.kscs.util.jaxb.Buildable
      Overrides:
      build in class Type.Builder<_B>
    • copyOf

      public ObjectType.Builder<_B> copyOf(ObjectType _other)
    • copyOf

      public ObjectType.Builder<_B> copyOf(ObjectType.Builder _other)