Class Stop

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable
    Direct Known Subclasses:
    POI, UICStop

    @Valid
    public class Stop
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject
    See Also:
    Serialized Form
    • Constructor Detail

      • Stop

        protected Stop()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • Stop

        protected Stop​(Stop.Builder pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • builder

        public static Stop.Builder builder()
        Method returns a new builder.
        Returns:
        Stop.Builder New builder that can be used to create new Stop objects.
      • builder

        public static Stop.Builder builder​(Stop pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        Stop.Builder New builder that can be used to create new Stop objects. The method never returns null.
      • builder

        public static Stop.Builder builder​(java.lang.String pName,
                                           byte pIndex,
                                           SoftLink pTheSoftLink)
        Method creates a new builder and initializes it with the passed attributes.
      • getName

        public java.lang.String getName()
        Method returns attribute name.
        Returns:
        String Value to which name is set.
      • setName

        public void setName​(java.lang.String pName)
        Method sets attribute name.
        Parameters:
        pName - Value to which name should be set.
      • getLinks

        public java.util.List<LinkObject> getLinks()
        Method returns association links.
        Returns:
        List Value to which links is set. The method never returns null and the returned collection is modifiable.
      • addToLinks

        public void addToLinks​(LinkObject pLinks)
        Method adds the passed object to links.
        Parameters:
        pLinks - Object that should be added to links. The parameter must not be null.
      • addToLinks

        public void addToLinks​(java.util.Collection<LinkObject> pLinks)
        Method adds all passed objects to links.
        Parameters:
        pLinks - Collection with all objects that should be added to links. The parameter must not be null.
      • removeFromLinks

        public void removeFromLinks​(LinkObject pLinks)
        Method removes the passed object from links.
        Parameters:
        pLinks - Object that should be removed from links. The parameter must not be null.
      • clearLinks

        public void clearLinks()
        Method removes all objects from links.
      • getIndex

        public byte getIndex()
        Method returns attribute index.
        Returns:
        byte Value to which index is set.
      • setIndex

        public void setIndex​(byte pIndex)
        Method sets attribute index.
        Parameters:
        pIndex - Value to which index should be set.
      • getTheSoftLink

        public SoftLink getTheSoftLink()
        Method returns association theSoftLink.

        This class uses so called soft links for decoupling. The actual type that is hidden by theSoftLink is LinkObject

        Returns:
        SoftLink Value to which theSoftLink is set.
      • setTheSoftLink

        public void setTheSoftLink​(SoftLink pTheSoftLink)
        Method sets association theSoftLink.
        Parameters:
        pTheSoftLink - Value to which theSoftLink should be set.
      • unsetTheSoftLink

        public final void unsetTheSoftLink()
        Method unsets theSoftLink.
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.