Class Type.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.vodml.ReferableElement.Builder<_B>
org.javastro.ivoa.entities.vodml.Type.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Direct Known Subclasses:
ObjectType.Builder, ValueType.Builder
Enclosing class:
Type

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

    • Builder

      public Builder(_B _parentBuilder, Type _other, boolean _copy)
    • Builder

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

    • init

      protected <_P extends Type> _P init(_P _product)
    • withExtends

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

      public ElementRef.Builder<? extends Type.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.
      Returns:
      A new builder to build the value of the "_extends" property. Use ElementRef.Builder.end() to return to the current builder.
    • addConstraints

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

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

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

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

      public Constraint.Builder<? extends Type.Builder<_B>> addConstraints()
      Returns a new builder to build an additional value of the "Constraints" property. Use Constraint.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Constraints" property. Use Constraint.Builder.end() to return to the current builder.
    • withAbstract

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

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

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

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

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

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

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

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