11package org .openstack .model .common ;
22
33import java .io .Serializable ;
4+ import java .util .ArrayList ;
5+ import java .util .List ;
46
57import javax .xml .bind .annotation .XmlAccessType ;
68import javax .xml .bind .annotation .XmlAccessorType ;
79import javax .xml .bind .annotation .XmlAttribute ;
810import javax .xml .bind .annotation .XmlElement ;
911import javax .xml .bind .annotation .XmlRootElement ;
1012
13+ import org .codehaus .jackson .map .annotate .JsonRootName ;
14+ import org .openstack .model .atom .Link ;
15+
1116@ XmlRootElement
1217@ XmlAccessorType (XmlAccessType .NONE )
13- @ JsonRootElement ("extension" )
18+ @ JsonRootName ("extension" )
1419public class Extension implements Serializable {
1520
1621 @ XmlAttribute
@@ -27,6 +32,8 @@ public class Extension implements Serializable {
2732
2833 @ XmlElement
2934 private String description ;
35+
36+ private List <Link > links = new ArrayList <Link >();
3037
3138 public String getAlias () {
3239 return alias ;
@@ -68,7 +75,15 @@ public void setDescription(String description) {
6875 this .description = description ;
6976 }
7077
71- @ Override
78+ public List <Link > getLinks () {
79+ return links ;
80+ }
81+
82+ public void setLinks (List <Link > links ) {
83+ this .links = links ;
84+ }
85+
86+ @ Override
7287 public String toString () {
7388 return "Extension [alias=" + alias + ", updated=" + updated + ", namespace=" + namespace + ", name=" + name + ", description=" + description + "]" ;
7489 }
0 commit comments