Class POI.Builder

  • Enclosing class:
    POI

    public static class POI.Builder
    extends Stop.Builder
    Class implements builder to create a new instance of class POI.
    • Constructor Detail

      • Builder

        protected Builder()
        Use POI.builder() instead of private constructor to create new builder.
      • Builder

        protected Builder​(POI pObject)
        Use POI.builder(POI) instead of private constructor to create new builder.
    • Method Detail

      • setName

        public POI.Builder setName​(java.lang.String pName)
        Method sets attribute Stop.name.
        Overrides:
        setName in class Stop.Builder
        Parameters:
        pName - Value to which Stop.name should be set.
        Returns:
        POI.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setDescription

        public POI.Builder setDescription​(java.lang.String pDescription)
        Method sets attribute description.
        Parameters:
        pDescription - Value to which description should be set.
        Returns:
        POI.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setTheLink

        @Deprecated
        public POI.Builder setTheLink​(java.lang.Long pTheLink)
        Deprecated.
        Method sets association theLink.
        Parameters:
        pTheLink - Value to which theLink should be set.
        Returns:
        POI.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setEvenMoreLinks

        @Deprecated
        public POI.Builder setEvenMoreLinks​(java.util.Set<SoftLink> pEvenMoreLinks)
        Deprecated.
        Method sets association evenMoreLinks.
        Parameters:
        pEvenMoreLinks - Collection to which evenMoreLinks should be set.
        Returns:
        POI.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

        public POI build()
        Method creates a new instance of class POI. The object will be initialized with the values of the builder.
        Overrides:
        build in class Stop.Builder
        Returns:
        POI Created object. The method never returns null.
      • buildValidated

        public POI buildValidated()
                           throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class POI. The object will be initialized with the values of the builder and validated afterwards.
        Overrides:
        buildValidated in class Stop.Builder
        Returns:
        POI Created and validated object. The method never returns null.
        Throws:
        javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.