@Override public boolean check(ValidationContext ctx, Event c) { // useValuesFromTriggerTime is a mandatory attribute if (!c.isSetUseValuesFromTriggerTime()) { return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, InitialAssignment c) { // symbol is a mandatory attribute if (!c.isSetSymbol()) { return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, UnitDefinition ud) { // 'id' is a mandatory attribute if (!ud.isSetId()) { return false; } return super.check(ctx, ud); } };
@Override public boolean check(ValidationContext ctx, CompartmentReference cr) { if (!cr.isSetCompartment()) { return false; } return super.check(ctx, cr); } };
@Override public boolean check(ValidationContext ctx, AssignmentRule rule) { // variable is a mandatory attribute if (!rule.isSetVariable()) { return false; } return super.check(ctx, rule); } };
@Override public boolean check(ValidationContext ctx, SimpleSpeciesReference c) { // species is a mandatory attribute if (!c.isSetSpecies()) { // TODO - may be moved it to ModifierSpeciesReferenceConstraints ? return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, EventAssignment c) { // variable is a mandatory attribute if (!c.isSetVariable()) { return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, Parameter c) { // id and constant are mandatory attributes if (!c.isSetId() || !c.isSetConstant()) { return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, Compartment c) { // id and constant are mandatory attributes if (!c.isSetId() || !c.isSetConstant()) { return false; } return super.check(ctx, c); } };
@Override public boolean check(ValidationContext ctx, Transition t) { if (t.isSetListOfFunctionTerms()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, t.getListOfFunctionTerms()); } return true; } };
@Override public boolean check(ValidationContext ctx, Event kl) { if (kl.isSetListOfEventAssignments()) { UnknownAttributeValidationFunction<ListOf<EventAssignment>> unknownFunc = new UnknownAttributeValidationFunction<ListOf<EventAssignment>>(); return unknownFunc.check(ctx, kl.getListOfEventAssignments()); } return true; } };
@Override public boolean check(ValidationContext ctx, Transition t) { if (t.isSetListOfInputs()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, t.getListOfInputs()); } return true; } };
@Override public boolean check(ValidationContext ctx, MultiCompartmentPlugin c) { if (c.isSetListOfCompartmentReferences()) { UnknownAttributeValidationFunction<ListOf<CompartmentReference>> unknownFunc = new UnknownAttributeValidationFunction<ListOf<CompartmentReference>>(); return unknownFunc.check(ctx, c.getListOfCompartmentReferences()); } return true; } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfInitialAssignments() || m.isListOfInitialAssignmentsEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfInitialAssignments()); } return true; } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfConstraints() || m.isListOfConstraintsEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfConstraints()); } return true; } };
@Override public boolean check(ValidationContext ctx, Unit unit) { // 'kind', 'exponent', 'scale' and 'multiplier' are mandatory attributes if (!unit.isSetKind() || !unit.isSetExponent() || !unit.isSetScale() || !unit.isSetMultiplier()) { return false; } return super.check(ctx, unit); } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfCompartments() || m.isListOfCompartmentsEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfCompartments()); } return true; } };
@Override public boolean check(ValidationContext ctx, UnitDefinition ud) { if (ud.isSetListOfUnits() || ud.isListOfUnitsEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, ud.getListOfUnits()); } return true; } };
@Override public boolean check(ValidationContext ctx, KineticLaw kl) { if (kl.isSetListOfLocalParameters() || kl.isListOfLocalParametersEmpty()) { UnknownAttributeValidationFunction<ListOf<LocalParameter>> unknownFunc = new UnknownAttributeValidationFunction<ListOf<LocalParameter>>(); return unknownFunc.check(ctx, kl.getListOfLocalParameters()); } return true; } };
@Override public boolean check(ValidationContext ctx, Model m) { if (m.isSetListOfRules() || m.isListOfRulesEmpty()) { return new UnknownAttributeValidationFunction<TreeNodeWithChangeSupport>().check(ctx, m.getListOfRules()); } return true; } };