1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.neo4j.server.webadmin.rest.representations;
21
22 import org.neo4j.server.rest.repr.ObjectRepresentation;
23 import org.neo4j.server.rest.repr.Representation;
24 import org.neo4j.server.rest.repr.ValueRepresentation;
25
26 public class NameDescriptionValueRepresentation extends ObjectRepresentation
27 {
28 private String name;
29 private String description;
30 private Representation value;
31
32 public NameDescriptionValueRepresentation(String name, String description, Representation value)
33 {
34 super( "nameDescriptionValue" );
35 this.name = name;
36 this.description = description;
37 this.value = value;
38 }
39
40 @Mapping( "name" )
41 public ValueRepresentation getName()
42 {
43 return ValueRepresentation.string( name );
44 }
45
46 @Mapping( "description" )
47 public ValueRepresentation getDescription()
48 {
49 return ValueRepresentation.string( description );
50 }
51
52 @Mapping( "value" )
53 public Representation getValue()
54 {
55 return value;
56 }
57
58 }