private void constantPropertyErrorCheck() { if( isConstantProperty!=null && getOwner()!=null ) { // run additional check on the isCOnstantProperty value. // this value is not allowed if the schema component doesn't have // a fixed value constraint. // // the setParent method associates a customization with the rest of // XSOM object graph, so this is the earliest possible moment where // we can test this. if( !hasFixedValue.find(getOwner()) ) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_ILLEGAL_FIXEDATTR.format() ); // set this value to null to avoid the same error to be reported more than once. isConstantProperty = null; } } }
private void constantPropertyErrorCheck() { if( isConstantProperty!=null && getOwner()!=null ) { // run additional check on the isCOnstantProperty value. // this value is not allowed if the schema component doesn't have // a fixed value constraint. // // the setParent method associates a customization with the rest of // XSOM object graph, so this is the earliest possible moment where // we can test this. if( !hasFixedValue.find(getOwner()) ) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_ILLEGAL_FIXEDATTR.format() ); // set this value to null to avoid the same error to be reported more than once. isConstantProperty = null; } } }
private void constantPropertyErrorCheck() { if( isConstantProperty!=null && getOwner()!=null ) { // run additional check on the isCOnstantProperty value. // this value is not allowed if the schema component doesn't have // a fixed value constraint. // // the setParent method associates a customization with the rest of // XSOM object graph, so this is the earliest possible moment where // we can test this. if( !hasFixedValue.find(getOwner()) ) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_ILLEGAL_FIXEDATTR.format() ); // set this value to null to avoid the same error to be reported more than once. isConstantProperty = null; } } }
private void constantPropertyErrorCheck() { if( isConstantProperty!=null && getOwner()!=null ) { // run additional check on the isCOnstantProperty value. // this value is not allowed if the schema component doesn't have // a fixed value constraint. // // the setParent method associates a customization with the rest of // XSOM object graph, so this is the earliest possible moment where // we can test this. if( !hasFixedValue.find(getOwner()) ) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_ILLEGAL_FIXEDATTR.format() ); // set this value to null to avoid the same error to be reported more than once. isConstantProperty = null; } } }
private void constantPropertyErrorCheck() { if( isConstantProperty!=null && getOwner()!=null ) { // run additional check on the isCOnstantProperty value. // this value is not allowed if the schema component doesn't have // a fixed value constraint. // // the setParent method associates a customization with the rest of // XSOM object graph, so this is the earliest possible moment where // we can test this. if( !hasFixedValue.find(getOwner()) ) { Ring.get(ErrorReceiver.class).error( getLocation(), Messages.ERR_ILLEGAL_FIXEDATTR.format() ); // set this value to null to avoid the same error to be reported more than once. isConstantProperty = null; } } }