Class DirectedEdge
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.DirectedEdge
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class DirectedEdge extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirectedEdge.BuilderClass implements builder to create a new instance of classDirectedEdge.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDirectedEdge()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedDirectedEdge(DirectedEdge.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectedEdge.Builderbuilder()Method returns a new builder.static DirectedEdge.Builderbuilder(DirectedEdge pObject)Method creates a new builder and initialize it with the data from the passed object.static DirectedEdge.Builderbuilder(Stop pEnd, java.lang.String pLink)Method creates a new builder and initializes it with the passed attributes.StopgetEnd()Method returns associationend.
The endjava.lang.StringgetLink()Method returns attributelink.StopgetStart()Method returns associationstart.
The startvoidsetEnd(Stop pEnd)Method sets associationend.
The endvoidsetLink(java.lang.String pLink)Method sets attributelink.voidsetStart(Stop pStart)Method sets associationstart.
The startjava.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.voidunsetEnd()Method unsetsend.voidunsetStart()Method unsetsstart.
-
-
-
Constructor Detail
-
DirectedEdge
protected DirectedEdge()
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.
-
DirectedEdge
protected DirectedEdge(DirectedEdge.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 DirectedEdge.Builder builder()
Method returns a new builder.- Returns:
DirectedEdge.BuilderNew builder that can be used to create new DirectedEdge objects.
-
builder
public static DirectedEdge.Builder builder(DirectedEdge 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:
DirectedEdge.BuilderNew builder that can be used to create new DirectedEdge objects. The method never returns null.
-
builder
public static DirectedEdge.Builder builder(Stop pEnd, java.lang.String pLink)
Method creates a new builder and initializes it with the passed attributes.
-
setStart
public void setStart(Stop pStart)
Method sets associationstart.
The start- Parameters:
pStart- Value to whichstartshould be set.
-
unsetStart
public final void unsetStart()
Method unsetsstart.
-
setEnd
public void setEnd(Stop pEnd)
Method sets associationend.
The end- Parameters:
pEnd- Value to whichendshould be set.
-
unsetEnd
public final void unsetEnd()
Method unsetsend.
-
getLink
public java.lang.String getLink()
Method returns attributelink.- Returns:
StringValue to whichlinkis set.
-
setLink
public void setLink(java.lang.String pLink)
Method sets attributelink.- Parameters:
pLink- Value to whichlinkshould be set.
-
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:
StringBuilderStringBuilder 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:
toStringin classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-