@Override public ListOf<T> clone() { return new ListOf<T>(this); }
public CompFlatteningConverter() { this.listOfSubmodelsToFlatten = new ArrayList<>(); this.previousModelIDs = new ArrayList<>(); this.previousModelMetaIDs = new ArrayList<>(); this.modelDefinitionListOf = new ListOf<>(); this.externalModelDefinitionListOf = new ListOf<>(); this.flattenedModel = new Model(); }
/** * * @return the listOfReactants of this Reaction. Is initialized here if not * yet set. */ public ListOf<SpeciesReference> getListOfReactants() { if (listOfReactants == null) { listOfReactants = ListOf.initListOf(this, new ListOf<SpeciesReference>(), ListOf.Type.listOfReactants); registerChild(listOfReactants); } return listOfReactants; }
/** * * @return the listOfProducts of this Reaction. Is initialized here if not * yet set. */ public ListOf<SpeciesReference> getListOfProducts() { if (listOfProducts == null) { listOfProducts = ListOf.initListOf(this, new ListOf<SpeciesReference>(), ListOf.Type.listOfProducts); registerChild(listOfProducts); } return listOfProducts; }
/** * Initializes a new {@link ListOf} object for the given * parent SBML object and with the given {@link Class} as the type of the * list. * * @param parent the ListOf parent * @param clazz the class of objects the new ListOf will contain * @return a new {@link ListOf} object for the given * parent SBML object and with the given {@link Class} as the type of the * list. */ public static <T extends SBase> ListOf<T> newInstance(SBase parent, Class<T> clazz) { /* * Again, note that the created element cannot be registered as a child in * this position. See the comment in the called method for details. */ return initListOf(parent, new ListOf<T>(), ListOf.Type.valueOf(clazz)); }
/** * Returns the listOfAnalyticVolumes. Creates it if it is not already existing. * * @return the listOfAnalyticVolumes */ public ListOf<AnalyticVolume> getListOfAnalyticVolumes() { if (!isSetListOfAnalyticVolumes()) { listOfAnalyticVolumes = new ListOf<AnalyticVolume>(); listOfAnalyticVolumes.setNamespace(SpatialConstants.namespaceURI); listOfAnalyticVolumes.setSBaseListType(ListOf.Type.other); registerChild(listOfAnalyticVolumes); } return listOfAnalyticVolumes; }
/** * Returns the listOfParametricObjects. Creates it if it is not already existing. * * @return the listOfParametricObjects */ public ListOf<ParametricObject> getListOfParametricObjects() { if (!isSetListOfParametricObjects()) { listOfParametricObjects = new ListOf<ParametricObject>(getLevel(), getVersion()); listOfParametricObjects.setNamespace(SpatialConstants.namespaceURI); listOfParametricObjects.setSBaseListType(ListOf.Type.other); registerChild(listOfParametricObjects); } return listOfParametricObjects; }
/** * Returns the listOfDomains. Creates it if it is not already existing. * * @return the listOfDomains */ public ListOf<Domain> getListOfDomains() { if (!isSetListOfDomains()) { listOfDomains = new ListOf<Domain>(); listOfDomains.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfDomains.setPackageName(null); listOfDomains.setPackageName(SpatialConstants.shortLabel); listOfDomains.setSBaseListType(ListOf.Type.other); registerChild(listOfDomains); } return listOfDomains; }
/** * Returns the listOfDomainTypes. Creates it if it is not already existing. * * @return the listOfDomainTypes */ public ListOf<DomainType> getListOfDomainTypes() { if (!isSetListOfDomainTypes()) { listOfDomainTypes = new ListOf<DomainType>(); listOfDomainTypes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfDomainTypes.setPackageName(null); listOfDomainTypes.setPackageName(SpatialConstants.shortLabel); listOfDomainTypes.setSBaseListType(ListOf.Type.other); registerChild(listOfDomainTypes); } return listOfDomainTypes; }
/** * Returns the listOfInteriorPoints. Creates it if it is not already existing. * * @return the listOfInteriorPoints */ public ListOf<InteriorPoint> getListOfInteriorPoints() { if (!isSetListOfInteriorPoints()) { listOfInteriorPoints = new ListOf<InteriorPoint>(); listOfInteriorPoints.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfInteriorPoints.setPackageName(null); listOfInteriorPoints.setPackageName(SpatialConstants.shortLabel); listOfInteriorPoints.setSBaseListType(ListOf.Type.other); registerChild(listOfInteriorPoints); } return listOfInteriorPoints; }
/** * Returns the listOfCoordinateComponents. Creates it if it is not already existing. * * @return the listOfCoordinateComponents */ public ListOf<CoordinateComponent> getListOfCoordinateComponents() { if (!isSetListOfCoordinateComponents()) { listOfCoordinateComponents = new ListOf<CoordinateComponent>(); listOfCoordinateComponents.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfCoordinateComponents.setPackageName(null); listOfCoordinateComponents.setPackageName(SpatialConstants.shortLabel); listOfCoordinateComponents.setSBaseListType(ListOf.Type.other); registerChild(listOfCoordinateComponents); } return listOfCoordinateComponents; }
/** * Returns the listOfGeometryDefinitions. Creates it if it is not already existing. * * @return the listOfGeometryDefinitions */ public ListOf<GeometryDefinition> getListOfGeometryDefinitions() { if (!isSetListOfGeometryDefinitions()) { listOfGeometryDefinitions = new ListOf<GeometryDefinition>(); listOfGeometryDefinitions.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfGeometryDefinitions.setPackageName(null); listOfGeometryDefinitions.setPackageName(SpatialConstants.shortLabel); listOfGeometryDefinitions.setSBaseListType(ListOf.Type.other); registerChild(listOfGeometryDefinitions); } return listOfGeometryDefinitions; }
/** * Returns the listOfAdjacentDomains. Creates it if it is not already existing. * * @return the listOfAdjacentDomains */ public ListOf<AdjacentDomains> getListOfAdjacentDomains() { if (!isSetListOfAdjacentDomains()) { listOfAdjacentDomains = new ListOf<AdjacentDomains>(); listOfAdjacentDomains.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfAdjacentDomains.setPackageName(null); listOfAdjacentDomains.setPackageName(SpatialConstants.shortLabel); listOfAdjacentDomains.setSBaseListType(ListOf.Type.other); registerChild(listOfAdjacentDomains); } return listOfAdjacentDomains; }
/** * 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 listOfOrdinalMappings. Creates it if it is not already existing. * * @return the listOfOrdinalMappings */ public ListOf<OrdinalMapping> getListOfOrdinalMappings() { if (!isSetListOfOrdinalMappings()) { listOfOrdinalMappings = new ListOf<OrdinalMapping>(getLevel(), getVersion()); listOfOrdinalMappings.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfOrdinalMappings.setPackageName(null); listOfOrdinalMappings.setPackageName(SpatialConstants.shortLabel); listOfOrdinalMappings.setSBaseListType(ListOf.Type.other); registerChild(listOfOrdinalMappings); } return listOfOrdinalMappings; }
/** * Returns the listOfCSGNodes. Creates it if it is not already existing. * * @return the listOfCSGNodes */ public ListOf<CSGNode> getListOfCSGNodes() { if (!isSetListOfCSGNodes()) { listOfCSGNodes = new ListOf<CSGNode>(getLevel(), getVersion()); listOfCSGNodes.setPackageVersion(-1); // changing the ListOf package name from 'core' to 'spatial' listOfCSGNodes.setPackageName(null); listOfCSGNodes.setPackageName(SpatialConstants.shortLabel); listOfCSGNodes.setSBaseListType(ListOf.Type.other); registerChild(listOfCSGNodes); } return listOfCSGNodes; }
/** * @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; }