/** * Creates a ListOf instance from a given ListOf. * * @param listOf the list to clone */ @SuppressWarnings("unchecked") public ListOf(ListOf<? extends SBase> listOf) { super(listOf); setSBaseListType(listOf.getSBaseListType()); setOtherListName(listOf.getOtherListName()); for (SBase base : listOf) { if (base != null) { add((T) base.clone()); } } }
/** * The {@link Transition} element contains exactly one list of {@link FunctionTerm}s. * @param loft */ public void setListOfFunctionTerms(ListOf<FunctionTerm> loft) { unsetListOfFunctionTerms(); listOfFunctionTerms = loft; if (listOfFunctionTerms != null) { listOfFunctionTerms.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfFunctionTerms.setPackageName(null); listOfFunctionTerms.setPackageName(QualConstants.shortLabel); listOfFunctionTerms.setSBaseListType(ListOf.Type.other); listOfFunctionTerms.setOtherListName(QualConstants.listOfFunctionTerms); registerChild(listOfFunctionTerms); } }
/** * The {@link Transition} element contains at most one list of {@link Input}s. * @param loi */ public void setListOfInputs(ListOf<Input> loi) { unsetListOfInputs(); listOfInputs = loi; if (listOfInputs != null) { listOfInputs.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfInputs.setPackageName(null); listOfInputs.setPackageName(QualConstants.shortLabel); listOfInputs.setSBaseListType(ListOf.Type.other); listOfInputs.setOtherListName(QualConstants.listOfInputs); registerChild(listOfInputs); } }
/** * Sets the given {@code ListOf<InSpeciesTypeBond>}. * If {@link #listOfInSpeciesTypeBonds} was defined before and contains some * elements, they are all unset. * * @param listOfInSpeciesTypeBonds the list of {@link InSpeciesTypeBond} */ public void setListOfInSpeciesTypeBonds(ListOf<InSpeciesTypeBond> listOfInSpeciesTypeBonds) { unsetListOfInSpeciesTypeBonds(); this.listOfInSpeciesTypeBonds = listOfInSpeciesTypeBonds; if (listOfInSpeciesTypeBonds != null) { listOfInSpeciesTypeBonds.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfInSpeciesTypeBonds.setPackageName(null); listOfInSpeciesTypeBonds.setPackageName(MultiConstants.shortLabel); listOfInSpeciesTypeBonds.setSBaseListType(ListOf.Type.other); listOfInSpeciesTypeBonds.setOtherListName(MultiConstants.listOfInSpeciesTypeBonds); registerChild(listOfInSpeciesTypeBonds); } }
/** * Sets the given {@code ListOf<SpeciesFeatureType>}. * If {@link #listOfSpeciesFeatureTypes} was defined before and contains some * elements, they are all unset. * * @param listOfSpeciesFeatureTypes the list of {@link SpeciesFeatureType} */ public void setListOfSpeciesFeatureTypes(ListOf<SpeciesFeatureType> listOfSpeciesFeatureTypes) { unsetListOfSpeciesFeatureTypes(); this.listOfSpeciesFeatureTypes = listOfSpeciesFeatureTypes; if (listOfSpeciesFeatureTypes != null) { listOfSpeciesFeatureTypes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesFeatureTypes.setPackageName(null); listOfSpeciesFeatureTypes.setPackageName(MultiConstants.shortLabel); listOfSpeciesFeatureTypes.setSBaseListType(ListOf.Type.other); listOfSpeciesFeatureTypes.setOtherListName(MultiConstants.listOfSpeciesFeatureTypes); registerChild(this.listOfSpeciesFeatureTypes); } }
/** * The {@link Transition} element contains at most one list of {@link Output}s. * * @param loo */ public void setListOfOutputs(ListOf<Output> loo) { unsetListOfOutputs(); listOfOutputs = loo; if (listOfOutputs != null) { listOfOutputs.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfOutputs.setPackageName(null); listOfOutputs.setPackageName(QualConstants.shortLabel); listOfOutputs.setSBaseListType(ListOf.Type.other); listOfOutputs.setOtherListName(QualConstants.listOfOutputs); registerChild(listOfOutputs); } }
/** * Returns the {@link #listOfInSpeciesTypeBonds}. * Creates it if it does not already exist. * * @return the {@link #listOfInSpeciesTypeBonds}. */ public ListOf<InSpeciesTypeBond> getListOfInSpeciesTypeBonds() { if (listOfInSpeciesTypeBonds == null) { listOfInSpeciesTypeBonds = new ListOf<InSpeciesTypeBond>(); listOfInSpeciesTypeBonds.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfInSpeciesTypeBonds.setPackageName(null); listOfInSpeciesTypeBonds.setPackageName(MultiConstants.shortLabel); listOfInSpeciesTypeBonds.setSBaseListType(ListOf.Type.other); listOfInSpeciesTypeBonds.setOtherListName(MultiConstants.listOfInSpeciesTypeBonds); registerChild(listOfInSpeciesTypeBonds); } return listOfInSpeciesTypeBonds; }
/** * Returns the {@link #listOfSpeciesFeatureTypes}. * Creates it if it does not already exist. * * @return the {@link #listOfSpeciesFeatureTypes}. */ public ListOf<SpeciesFeatureType> getListOfSpeciesFeatureTypes() { if (listOfSpeciesFeatureTypes == null) { listOfSpeciesFeatureTypes = new ListOf<SpeciesFeatureType>(); listOfSpeciesFeatureTypes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesFeatureTypes.setPackageName(null); listOfSpeciesFeatureTypes.setPackageName(MultiConstants.shortLabel); listOfSpeciesFeatureTypes.setSBaseListType(ListOf.Type.other); listOfSpeciesFeatureTypes.setOtherListName(MultiConstants.listOfSpeciesFeatureTypes); registerChild(listOfSpeciesFeatureTypes); } return listOfSpeciesFeatureTypes; }
/** * Returns the {@link #listOfPossibleSpeciesFeatureValues}. * Creates it if it does not already exist. * * @return the {@link #listOfPossibleSpeciesFeatureValues}. */ public ListOf<PossibleSpeciesFeatureValue> getListOfPossibleSpeciesFeatureValues() { if (listOfPossibleSpeciesFeatureValues == null) { listOfPossibleSpeciesFeatureValues = new ListOf<PossibleSpeciesFeatureValue>(); listOfPossibleSpeciesFeatureValues.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfPossibleSpeciesFeatureValues.setPackageName(null); listOfPossibleSpeciesFeatureValues.setPackageName(MultiConstants.shortLabel); listOfPossibleSpeciesFeatureValues.setSBaseListType(ListOf.Type.other); listOfPossibleSpeciesFeatureValues.setOtherListName(MultiConstants.listOfPossibleSpeciesFeatureValues); registerChild(listOfPossibleSpeciesFeatureValues); } return listOfPossibleSpeciesFeatureValues; }
/** * Returns the {@link #listOfSpeciesTypeComponentIndexes}. * Creates it if it does not already exist. * * @return the {@link #listOfSpeciesTypeComponentIndexes}. */ public ListOf<SpeciesTypeComponentIndex> getListOfSpeciesTypeComponentIndexes() { if (listOfSpeciesTypeComponentIndexes == null) { listOfSpeciesTypeComponentIndexes = new ListOf<SpeciesTypeComponentIndex>(); listOfSpeciesTypeComponentIndexes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesTypeComponentIndexes.setPackageName(null); listOfSpeciesTypeComponentIndexes.setPackageName(MultiConstants.shortLabel); listOfSpeciesTypeComponentIndexes.setSBaseListType(ListOf.Type.other); listOfSpeciesTypeComponentIndexes.setOtherListName(MultiConstants.listOfSpeciesTypeComponentIndexes); registerChild(listOfSpeciesTypeComponentIndexes); } return listOfSpeciesTypeComponentIndexes; }
/** * Returns the {@link #listOfSpeciesTypeInstances}. * Creates it if it does not already exist. * * @return the {@link #listOfSpeciesTypeInstances}. */ public ListOf<SpeciesTypeInstance> getListOfSpeciesTypeInstances() { if (listOfSpeciesTypeInstances == null) { listOfSpeciesTypeInstances = new ListOf<SpeciesTypeInstance>(); listOfSpeciesTypeInstances.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesTypeInstances.setPackageName(null); listOfSpeciesTypeInstances.setPackageName(MultiConstants.shortLabel); listOfSpeciesTypeInstances.setSBaseListType(ListOf.Type.other); listOfSpeciesTypeInstances.setOtherListName(MultiConstants.listOfSpeciesTypeInstances); registerChild(listOfSpeciesTypeInstances); } return listOfSpeciesTypeInstances; }
/** * Returns the listOfSpeciesTypes. * * @return the listOfSpeciesTypes */ public ListOf<MultiSpeciesType> getListOfSpeciesTypes() { if (listOfSpeciesTypes == null) { listOfSpeciesTypes = new ListOf<MultiSpeciesType>(); listOfSpeciesTypes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesTypes.setPackageName(null); listOfSpeciesTypes.setPackageName(MultiConstants.shortLabel); listOfSpeciesTypes.setSBaseListType(ListOf.Type.other); listOfSpeciesTypes.setOtherListName(MultiConstants.listOfSpeciesTypes); if (isSetExtendedSBase()) { extendedSBase.registerChild(listOfSpeciesTypes); } } return listOfSpeciesTypes; }
/** * Returns the {@link #listOfSpeciesTypeComponentMapInProducts}. * Creates it if it does not already exist. * * @return the {@link #listOfSpeciesTypeComponentMapInProducts}. */ public ListOf<SpeciesTypeComponentMapInProduct> getListOfSpeciesTypeComponentMapInProducts() { if (listOfSpeciesTypeComponentMapInProducts == null) { listOfSpeciesTypeComponentMapInProducts = new ListOf<SpeciesTypeComponentMapInProduct>(); listOfSpeciesTypeComponentMapInProducts.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'multi' listOfSpeciesTypeComponentMapInProducts.setPackageName(null); listOfSpeciesTypeComponentMapInProducts.setPackageName(MultiConstants.shortLabel); listOfSpeciesTypeComponentMapInProducts.setSBaseListType(ListOf.Type.other); listOfSpeciesTypeComponentMapInProducts.setOtherListName(MultiConstants.listOfSpeciesTypeComponentMapInProducts); if (isSetExtendedSBase()) { extendedSBase.registerChild(listOfSpeciesTypeComponentMapInProducts); } } return listOfSpeciesTypeComponentMapInProducts; }
/** * * @param listOfGroups */ public void setListOfGroups(ListOf<Group> listOfGroups) { unsetListOfGroups(); this.listOfGroups = listOfGroups; if (listOfGroups != null) { listOfGroups.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'groups' listOfGroups.setPackageName(null); listOfGroups.setPackageName(GroupsConstants.shortLabel); listOfGroups.setSBaseListType(ListOf.Type.other); listOfGroups.setOtherListName(GroupsConstants.listOfGroups); if (isSetExtendedSBase()) { extendedSBase.registerChild(listOfGroups); } } }
/** * @return the listOfQualitativeSpecies */ public ListOf<QualitativeSpecies> getListOfQualitativeSpecies() { if (listOfQualitativeSpecies == null) { listOfQualitativeSpecies = new ListOf<QualitativeSpecies>(); listOfQualitativeSpecies.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfQualitativeSpecies.setPackageName(null); listOfQualitativeSpecies.setPackageName(QualConstants.shortLabel); listOfQualitativeSpecies.setSBaseListType(ListOf.Type.other); listOfQualitativeSpecies.setOtherListName(QualConstants.listOfQualitativeSpecies); if (isSetExtendedSBase()) { getModel().registerChild(listOfQualitativeSpecies); } } return listOfQualitativeSpecies; }
/** * @return the listOTransitions */ public ListOf<Transition> getListOfTransitions() { if (listOfTransitions == null) { listOfTransitions = new ListOf<Transition>(); listOfTransitions.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfTransitions.setPackageName(null); listOfTransitions.setPackageName(QualConstants.shortLabel); listOfTransitions.setSBaseListType(ListOf.Type.other); listOfTransitions.setOtherListName(QualConstants.listOfTransitions); if (isSetExtendedSBase()) { getModel().registerChild(listOfTransitions); } } return listOfTransitions; }
/** * @return the listOfOutputs */ public ListOf<Output> getListOfOutputs() { if (!isSetListOfOutputs()) { listOfOutputs = new ListOf<Output>(getLevel(), getVersion()); listOfOutputs.setSBaseListType(ListOf.Type.other); listOfOutputs.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfOutputs.setPackageName(null); listOfOutputs.setPackageName(QualConstants.shortLabel); listOfOutputs.setOtherListName(QualConstants.listOfOutputs); registerChild(listOfOutputs); } return listOfOutputs; }
/** * @return the listOfInputs */ public ListOf<Input> getListOfInputs() { if (!isSetListOfInputs()) { listOfInputs = new ListOf<Input>(getLevel(), getVersion()); listOfInputs.setSBaseListType(ListOf.Type.other); listOfInputs.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfInputs.setPackageName(null); listOfInputs.setPackageName(QualConstants.shortLabel); listOfInputs.setOtherListName(QualConstants.listOfInputs); registerChild(listOfInputs); } return listOfInputs; }
/** * @return the listOfFunctionTerms */ public ListOf<FunctionTerm> getListOfFunctionTerms() { if (!isSetListOfFunctionTerms()) { listOfFunctionTerms = new ListOf<FunctionTerm>(getLevel(), getVersion()); listOfFunctionTerms.setSBaseListType(ListOf.Type.other); listOfFunctionTerms.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'qual' listOfFunctionTerms.setPackageName(null); listOfFunctionTerms.setPackageName(QualConstants.shortLabel); listOfFunctionTerms.setOtherListName(QualConstants.listOfFunctionTerms); registerChild(listOfFunctionTerms); } return listOfFunctionTerms; }
/** * Returns the listOfDeletions. Creates it if it is not already existing. * * @return the listOfDeletions */ public ListOf<Deletion> getListOfDeletions() { if (!isSetListOfDeletions()) { listOfDeletions = new ListOf<Deletion>(getLevel(), getVersion()); listOfDeletions.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'comp' listOfDeletions.setPackageName(null); listOfDeletions.setPackageName(CompConstants.shortLabel); listOfDeletions.setSBaseListType(ListOf.Type.other); listOfDeletions.setOtherListName(CompConstants.listOfDeletions); registerChild(listOfDeletions); } return listOfDeletions; }