Skip to content

Commit 4605f19

Browse files
committed
added Link length field
1 parent f00e83d commit 4605f19

File tree

1 file changed

+25
-1
lines changed
  • src/main/java/mil/nga/oapi/features/json

1 file changed

+25
-1
lines changed

src/main/java/mil/nga/oapi/features/json/Link.java

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author osbornb
1515
*/
16-
@JsonPropertyOrder({ "href", "rel", "type", "hreflang", "title" })
16+
@JsonPropertyOrder({ "href", "rel", "type", "hreflang", "title", "length" })
1717
public class Link extends FeaturesObject {
1818

1919
/**
@@ -46,6 +46,11 @@ public class Link extends FeaturesObject {
4646
*/
4747
private String title;
4848

49+
/**
50+
* length
51+
*/
52+
private Integer length;
53+
4954
/**
5055
* Constructor
5156
*/
@@ -158,6 +163,25 @@ public void setTitle(String title) {
158163
this.title = title;
159164
}
160165

166+
/**
167+
* Get the length
168+
*
169+
* @return length
170+
*/
171+
public Integer getLength() {
172+
return length;
173+
}
174+
175+
/**
176+
* Set the length
177+
*
178+
* @param length
179+
* length
180+
*/
181+
public void setLength(Integer length) {
182+
this.length = length;
183+
}
184+
161185
/**
162186
* Convert the links object to a list of links
163187
*

0 commit comments

Comments
 (0)