added isPrimitive() utility method to find out if this property

can possibly be used as skin macro.
This commit is contained in:
hns 2001-11-27 14:12:00 +00:00
parent f017f35e78
commit 0dd58e56b0

View file

@ -293,6 +293,13 @@ public class Relation {
return virtual; 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 * Return the prototype to be used for object reached by this relation
*/ */