From 0dd58e56b077682d4c847a72ea9fc13e77d16f61 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 27 Nov 2001 14:12:00 +0000 Subject: [PATCH] added isPrimitive() utility method to find out if this property can possibly be used as skin macro. --- src/helma/objectmodel/db/Relation.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/helma/objectmodel/db/Relation.java b/src/helma/objectmodel/db/Relation.java index 352453a5..5a56beb9 100644 --- a/src/helma/objectmodel/db/Relation.java +++ b/src/helma/objectmodel/db/Relation.java @@ -293,6 +293,13 @@ public class Relation { return virtual; } + /** + * Tell if this relation represents a primitive (scalar) value mapping. + */ + public boolean isPrimitive () { + return reftype == PRIMITIVE; + } + /** * Return the prototype to be used for object reached by this relation */