/** * INTERNAL: * Clone the policy */ public Object clone() { InheritancePolicy clone = null; try { clone = (InheritancePolicy)super.clone(); if (hasClassIndicator()) { clone.setClassIndicatorField(clone.getClassIndicatorField().clone()); } } catch (Exception exception) { throw new InternalError("clone failed"); } return clone; }
/** * INTERNAL: * Clone the policy */ public Object clone() { InheritancePolicy clone = null; try { clone = (InheritancePolicy)super.clone(); if (hasClassIndicator()) { clone.setClassIndicatorField((DatabaseField)clone.getClassIndicatorField().clone()); } } catch (Exception exception) { throw new InternalError("clone failed"); } return clone; }
/** * INTERNAL: * Clone the policy */ public Object clone() { InheritancePolicy clone = null; try { clone = (InheritancePolicy)super.clone(); if (hasClassIndicator()) { clone.setClassIndicatorField(clone.getClassIndicatorField().clone()); } } catch (Exception exception) { throw new InternalError("clone failed"); } return clone; }
@Override public void validateNode() { ClassDescriptor descriptor = getContainingDescriptor(); if (descriptor ==null){ throw QueryException.invalidTypeExpression(getBaseExpression()); } if ( (!descriptor.hasInheritance()) || (!descriptor.getInheritancePolicy().hasClassIndicator()) ) { throw QueryException.invalidTypeExpression(descriptor.getJavaClassName()); } super.validateNode(); }
public void validateNode() { ClassDescriptor descriptor = getContainingDescriptor(); if (descriptor ==null){ throw QueryException.invalidTypeExpression(getBaseExpression()); } if ( (!descriptor.hasInheritance()) || (!descriptor.getInheritancePolicy().hasClassIndicator()) ) { throw QueryException.invalidTypeExpression(descriptor.getJavaClassName()); } super.validateNode(); }
public void validateNode() { ClassDescriptor descriptor = getContainingDescriptor(); if (descriptor ==null){ throw QueryException.invalidTypeExpression(getBaseExpression()); } if ( (!descriptor.hasInheritance()) || (!descriptor.getInheritancePolicy().hasClassIndicator()) ) { throw QueryException.invalidTypeExpression(descriptor.getJavaClassName()); } super.validateNode(); }
this.schema.getDefinitions().put(definition.getName(), definition); definition.setType(JsonType.OBJECT); if(referenceDescriptor.hasInheritance() && referenceDescriptor.getInheritancePolicy().hasClassIndicator()) { XMLField f = (XMLField)referenceDescriptor.getInheritancePolicy().getClassIndicatorField(); Property indicatorProp = new Property();
this.schema.getDefinitions().put(definition.getName(), definition); definition.setType(JsonType.OBJECT); if(referenceDescriptor.hasInheritance() && referenceDescriptor.getInheritancePolicy().hasClassIndicator()) { XMLField f = (XMLField)referenceDescriptor.getInheritancePolicy().getClassIndicatorField(); Property indicatorProp = new Property();