public final class ShapeLink extends java.lang.Object implements ToNode, ToSmithyBuilder<ShapeLink>
Shape
and
the artifact that it produced.Modifier and Type | Class and Description |
---|---|
static class |
ShapeLink.Builder |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COLUMN_TEXT |
static java.lang.String |
FILE_TEXT |
static java.lang.String |
ID_TEXT |
static java.lang.String |
LINE_TEXT |
static java.lang.String |
TAGS_TEXT |
static java.lang.String |
TYPE_TEXT |
Modifier and Type | Method and Description |
---|---|
static ShapeLink.Builder |
builder() |
static ShapeLink |
fromNode(Node value)
Instantiates ShapeLink instance variables by extracting data from an ObjectNode.
|
java.util.Optional<java.lang.Integer> |
getColumn()
Gets this ShapeLink's column number in an optional container.
|
java.util.Optional<java.lang.String> |
getFile()
Gets this ShapeLink's file in an optional container.
|
java.lang.String |
getId()
Gets this ShapeLink's id.
|
java.util.Optional<java.lang.Integer> |
getLine()
Gets this ShapeLink's line number in an optional container.
|
java.util.List<java.lang.String> |
getTags()
Gets this ShapeLink's tags list.
|
java.lang.String |
getType()
Gets this ShapeLink's type.
|
ShapeLink.Builder |
toBuilder()
Take this object and create a builder that contains all of the
current property values of this object.
|
ObjectNode |
toNode()
Converts instance variables into an ObjectNode for writing out a ShapeLink.
|
public static final java.lang.String TYPE_TEXT
public static final java.lang.String ID_TEXT
public static final java.lang.String TAGS_TEXT
public static final java.lang.String FILE_TEXT
public static final java.lang.String LINE_TEXT
public static final java.lang.String COLUMN_TEXT
public static ShapeLink fromNode(Node value)
value
- an ObjectNode that represents the a single ShapeLinkpublic static ShapeLink.Builder builder()
public ObjectNode toNode()
public java.lang.String getType()
public java.lang.String getId()
public java.util.List<java.lang.String> getTags()
public java.util.Optional<java.lang.String> getFile()
public java.util.Optional<java.lang.Integer> getLine()
public java.util.Optional<java.lang.Integer> getColumn()
public ShapeLink.Builder toBuilder()
toBuilder
in interface ToSmithyBuilder<ShapeLink>