use of com.sun.tools.xjc.model.CTypeInfo in project midpoint by Evolveum.
the class SchemaProcessor method isFieldReference.
private boolean isFieldReference(JFieldVar field, ClassOutline classOutline) {
CPropertyInfo propertyInfo = classOutline.target.getProperty(field.name());
Collection<? extends CTypeInfo> collection = propertyInfo.ref();
if (collection == null || collection.isEmpty()) {
return false;
}
CTypeInfo info = collection.iterator().next();
if (info instanceof CClassInfo) {
CClassInfo classInfo = (CClassInfo) info;
if (OBJECT_REFERENCE_TYPE.equals(classInfo.getTypeName())) {
return true;
}
}
return false;
}
Aggregations