Skip to content

Commit 082f567

Browse files
committed
added a method to geta single attribute
1 parent a8dcce6 commit 082f567

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/arangodb/entity/BaseDocument.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@ public void updateAttribute (String key, Object value) {
187187
}
188188
}
189189

190+
/**
191+
* get a single attribute of the document
192+
*
193+
* @param key the key of the attribute
194+
* @return value of the attribute key
195+
*/
196+
public Object getAttribute(String key) {
197+
return this.properties.get(key);
198+
}
199+
190200
// /**
191201
// * check the list if it is suitable
192202
// *

0 commit comments

Comments
 (0)