projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start integrating GCR and JCR (not yet working)
[lgpl/argeo-commons.git]
/
org.argeo.api
/
src
/
org
/
argeo
/
api
/
gcr
/
Content.java
diff --git
a/org.argeo.api/src/org/argeo/api/gcr/Content.java
b/org.argeo.api/src/org/argeo/api/gcr/Content.java
index 34f11758aa08f2e45d9536875fe6638ddd72098c..b032aa7b888020dce1779b34d0434ee36613fd28 100644
(file)
--- a/
org.argeo.api/src/org/argeo/api/gcr/Content.java
+++ b/
org.argeo.api/src/org/argeo/api/gcr/Content.java
@@
-13,7
+13,7
@@
public interface Content extends Iterable<Content>, Map<String, Object> {
<A> A get(String key, Class<A> clss);
<A> A get(String key, Class<A> clss);
-
ContentSession getSession();
+
//
ContentSession getSession();
/*
* DEFAULT METHODS
/*
* DEFAULT METHODS
@@
-29,12
+29,12
@@
public interface Content extends Iterable<Content>, Map<String, Object> {
return get(key, String.class);
}
return get(key, String.class);
}
- default String attr(
Enum<?>
key) {
- return
attr(key.name()
);
+ default String attr(
Object
key) {
+ return
key != null ? attr(key.toString()) : attr(null
);
}
}
- default <A> A get(
Enum<?>
key, Class<A> clss) {
- return
get(key.name()
, clss);
+ default <A> A get(
Object
key, Class<A> clss) {
+ return
key != null ? get(key.toString(), clss) : get(null
, clss);
}
/*
}
/*