use of org.collectionspace.chain.csp.schema.FieldParent in project application by collectionspace.
the class ServiceBindingsGeneration method isScalarRepeat.
/*
* Repeatable scalars (multivalued scalars)...
*/
private boolean isScalarRepeat(FieldSet fieldSet) {
boolean result = false;
FieldParent parent = fieldSet.getParent();
if (parent instanceof Repeat) {
Repeat repeat = (Repeat) parent;
if (repeat.isTrueRepeatField() == true) {
String[] parts = repeat.getfullID().split("/");
if (parts.length == 1) {
result = true;
}
}
}
return result;
}
Aggregations