Class Stop.Builder

  • Direct Known Subclasses:
    POI.Builder, UICStop.Builder
    Enclosing class:
    Stop

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

      • Builder

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

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

      • setName

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

        public Stop.Builder setLinks​(java.util.List<LinkObject> pLinks)
        Method sets association links.
        Parameters:
        pLinks - Collection to which links should be set.
        Returns:
        Stop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setIndex

        public Stop.Builder setIndex​(byte pIndex)
        Method sets attribute index.
        Parameters:
        pIndex - Value to which index should be set.
        Returns:
        Stop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setTheSoftLink

        public Stop.Builder setTheSoftLink​(SoftLink pTheSoftLink)
        Method sets association theSoftLink.
        Parameters:
        pTheSoftLink - Value to which theSoftLink should be set.
        Returns:
        Stop.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

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

        public Stop buildValidated()
                            throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class Stop. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        Stop 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.