Class OAIPMH.Builder<_B>

java.lang.Object
org.javastro.ivoa.entities.resource.registry.oaipmh.OAIPMH.Builder<_B>
All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
Enclosing class:
OAIPMH

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

    • _parentBuilder

      protected final _B _parentBuilder
    • _storedValue

      protected final OAIPMH _storedValue
  • Constructor Details

    • Builder

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

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

    • end

      public _B end()
    • init

      protected <_P extends OAIPMH> _P init(_P _product)
    • withResponseDate

      public OAIPMH.Builder<_B> withResponseDate(ZonedDateTime responseDate)
      Sets the new value of "responseDate" (any previous value will be replaced)
      Parameters:
      responseDate - New value of the "responseDate" property.
    • withRequest

      public OAIPMH.Builder<_B> withRequest(RequestType request)
      Sets the new value of "request" (any previous value will be replaced)
      Parameters:
      request - New value of the "request" property.
    • withRequest

      public RequestType.Builder<? extends OAIPMH.Builder<_B>> withRequest()
      Returns the existing builder or a new builder to build the value of the "request" property. Use RequestType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "request" property. Use RequestType.Builder.end() to return to the current builder.
    • withListRecords

      public OAIPMH.Builder<_B> withListRecords(ListRecordsType listRecords)
      Sets the new value of "listRecords" (any previous value will be replaced)
      Parameters:
      listRecords - New value of the "listRecords" property.
    • withListRecords

      public ListRecordsType.Builder<? extends OAIPMH.Builder<_B>> withListRecords()
      Returns the existing builder or a new builder to build the value of the "listRecords" property. Use ListRecordsType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "listRecords" property. Use ListRecordsType.Builder.end() to return to the current builder.
    • withListIdentifiers

      public OAIPMH.Builder<_B> withListIdentifiers(ListIdentifiersType listIdentifiers)
      Sets the new value of "listIdentifiers" (any previous value will be replaced)
      Parameters:
      listIdentifiers - New value of the "listIdentifiers" property.
    • withListIdentifiers

      public ListIdentifiersType.Builder<? extends OAIPMH.Builder<_B>> withListIdentifiers()
      Returns the existing builder or a new builder to build the value of the "listIdentifiers" property. Use ListIdentifiersType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "listIdentifiers" property. Use ListIdentifiersType.Builder.end() to return to the current builder.
    • withGetRecord

      public OAIPMH.Builder<_B> withGetRecord(GetRecordType getRecord)
      Sets the new value of "getRecord" (any previous value will be replaced)
      Parameters:
      getRecord - New value of the "getRecord" property.
    • withGetRecord

      public GetRecordType.Builder<? extends OAIPMH.Builder<_B>> withGetRecord()
      Returns the existing builder or a new builder to build the value of the "getRecord" property. Use GetRecordType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "getRecord" property. Use GetRecordType.Builder.end() to return to the current builder.
    • withListSets

      public OAIPMH.Builder<_B> withListSets(ListSetsType listSets)
      Sets the new value of "listSets" (any previous value will be replaced)
      Parameters:
      listSets - New value of the "listSets" property.
    • withListSets

      public ListSetsType.Builder<? extends OAIPMH.Builder<_B>> withListSets()
      Returns the existing builder or a new builder to build the value of the "listSets" property. Use ListSetsType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "listSets" property. Use ListSetsType.Builder.end() to return to the current builder.
    • withListMetadataFormats

      public OAIPMH.Builder<_B> withListMetadataFormats(ListMetadataFormatsType listMetadataFormats)
      Sets the new value of "listMetadataFormats" (any previous value will be replaced)
      Parameters:
      listMetadataFormats - New value of the "listMetadataFormats" property.
    • withListMetadataFormats

      public ListMetadataFormatsType.Builder<? extends OAIPMH.Builder<_B>> withListMetadataFormats()
      Returns the existing builder or a new builder to build the value of the "listMetadataFormats" property. Use ListMetadataFormatsType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "listMetadataFormats" property. Use ListMetadataFormatsType.Builder.end() to return to the current builder.
    • withIdentify

      public OAIPMH.Builder<_B> withIdentify(IdentifyType identify)
      Sets the new value of "identify" (any previous value will be replaced)
      Parameters:
      identify - New value of the "identify" property.
    • withIdentify

      public IdentifyType.Builder<? extends OAIPMH.Builder<_B>> withIdentify()
      Returns the existing builder or a new builder to build the value of the "identify" property. Use IdentifyType.Builder.end() to return to the current builder.
      Returns:
      A new builder to build the value of the "identify" property. Use IdentifyType.Builder.end() to return to the current builder.
    • addErrors

      public OAIPMH.Builder<_B> addErrors(Iterable<? extends OAIPMHerrorType> errors)
      Adds the given items to the value of "errors"
      Parameters:
      errors - Items to add to the value of the "errors" property
    • withErrors

      public OAIPMH.Builder<_B> withErrors(Iterable<? extends OAIPMHerrorType> errors)
      Sets the new value of "errors" (any previous value will be replaced)
      Parameters:
      errors - New value of the "errors" property.
    • addErrors

      public OAIPMH.Builder<_B> addErrors(OAIPMHerrorType... errors)
      Adds the given items to the value of "errors"
      Parameters:
      errors - Items to add to the value of the "errors" property
    • withErrors

      public OAIPMH.Builder<_B> withErrors(OAIPMHerrorType... errors)
      Sets the new value of "errors" (any previous value will be replaced)
      Parameters:
      errors - New value of the "errors" property.
    • addErrors

      public OAIPMHerrorType.Builder<? extends OAIPMH.Builder<_B>> addErrors()
      Returns a new builder to build an additional value of the "Errors" property. Use OAIPMHerrorType.Builder.end() to return to the current builder.
      Returns:
      a new builder to build an additional value of the "Errors" property. Use OAIPMHerrorType.Builder.end() to return to the current builder.
    • build

      public OAIPMH build()
      Specified by:
      build in interface com.kscs.util.jaxb.Buildable
    • copyOf

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

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