@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetCoordinate()) { attributes.remove("coordinate"); attributes.put(SpatialConstants.shortLabel + ":coordinate", String.valueOf(getCoordinate())); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetValue()) { attributes.put(MultiConstants.shortLabel + ':' + MultiConstants.value, getValue()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetSpatialId()) { attributes.put(SpatialConstants.shortLabel + ":" + SpatialConstants.spatialId, getSpatialId()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetOrdinal()) { attributes.put(SpatialConstants.shortLabel + ":ordinal", ordinal.toString()); } if (isSetGeometryDefinition()) { attributes.put(SpatialConstants.shortLabel + ":geometryDefinition", getGeometryDefinition()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetComponents()) { attributes.remove("components"); attributes.put(SpatialConstants.shortLabel + ":components", Arrays.toString(getComponents())); } if (isSetComponentsLength()) { attributes.remove("componentsLength"); attributes.put(SpatialConstants.shortLabel + ":componentsLength", String.valueOf(getComponentsLength())); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); attributes.putAll(SBMLDocumentAttributes); if (isSetLevel()) { attributes.put("level", Integer.toString(getLevel())); } if (isSetVersion()) { attributes.put("version", Integer.toString(getVersion())); } Iterator<Map.Entry<String, String>> it = getDeclaredNamespaces().entrySet().iterator(); while (it.hasNext()) { Map.Entry<String, String> entry = it.next(); if (!entry.getKey().equals("xmlns")) { attributes.put(entry.getKey(), entry.getValue()); } } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetSpId()) { attributes.put(SpatialConstants.shortLabel + ":spatialRef", getSpId()); } if (isSetVariable()) { attributes.put(SpatialConstants.shortLabel + ":variable", String.valueOf(getVariable())); } return attributes; }
/** * Returns a String representing this SBase with all the * attributes that are defined. * * @return a String representing this SBase with all its * attributes */ @Override public String toString() { Map<String, String> attMap = writeXMLAttributes(); StringBuilder sb = new StringBuilder(""); sb.append(getElementName()).append(" ["); if (attMap != null) { // print id, name and metaid first sb.append(extractAttribute(attMap, "id")); sb.append(extractAttribute(attMap, "name")); sb.append(extractAttribute(attMap, "metaid")); for (String attributeName : attMap.keySet()) { sb.append(" ").append(attributeName).append("=\""); sb.append(attMap.get(attributeName)).append("\""); } } sb.append("]"); return sb.toString(); }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetCoord1()) { attributes.put(SpatialConstants.shortLabel + ":coord1", String.valueOf(getCoord1())); } if (isSetCoord2()) { attributes.put(SpatialConstants.shortLabel + ":coord2", String.valueOf(getCoord2())); } if (isSetCoord3()) { attributes.put(SpatialConstants.shortLabel + ":coord3", String.valueOf(getCoord3())); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetPointIndex()) { attributes.remove("pointIndex"); attributes.put(SpatialConstants.shortLabel + ":pointIndex", Arrays.toString(getPointIndex())); } if (isSetSBOTerm()) { attributes.remove(TreeNodeChangeEvent.sboTerm); attributes.put(SpatialConstants.shortLabel + ":" + TreeNodeChangeEvent.sboTerm, getSBOTermID()); } if (isSetMetaId()) { attributes.remove(TreeNodeChangeEvent.metaId); attributes.put(SpatialConstants.shortLabel + ":" + TreeNodeChangeEvent.metaId, getMetaId()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetComponent()) { attributes.put(MultiConstants.shortLabel + ":" + MultiConstants.component, getComponent()); } if (isSetBindingStatus()) { attributes.put(MultiConstants.shortLabel + ":" + MultiConstants.bindingStatus, getBindingStatus().toString()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetMath() && isSetLevel() && (getLevel() < 2)) { attributes.put("formula", getFormula()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetReactant()) { attributes.put(MultiConstants.shortLabel + ":" + MultiConstants.reactant, getReactant()); } if (isSetReactantComponent()) { attributes.put(MultiConstants.shortLabel + ":" + MultiConstants.reactantComponent, getReactantComponent()); } if (isSetProductComponent()) { attributes.put(MultiConstants.shortLabel + ":" + MultiConstants.productComponent, getProductComponent()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (isSetCompression()) { attributes.remove("compression"); attributes.put(SpatialConstants.shortLabel + ":compression", getCompression().toString()); } if (isSetArrayDataLength()) { attributes.remove("arrayDataLength"); attributes.put(SpatialConstants.shortLabel + ":arrayDataLength", String.valueOf(getArrayDataLength())); } if (isSetDataType()) { attributes.remove("dataType"); // see DataKind.java attributes.put(SpatialConstants.shortLabel + ":dataType", getDataType().toString().toLowerCase()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); if (getPackageName().equals(CompConstants.shortLabel) && isSetId()) { attributes.remove("id"); attributes.put(CompConstants.shortLabel + ":id", getId()); } if (getPackageName().equals(CompConstants.shortLabel) && isSetName()) { attributes.remove("name"); attributes.put(CompConstants.shortLabel + ":name", getName()); } if (isSetPortRef()) { attributes.put(CompConstants.shortLabel + ':' + CompConstants.portRef, getPortRef()); } if (isSetIdRef()) { attributes.put(CompConstants.shortLabel + ':' + CompConstants.idRef, getIdRef()); } if (isSetUnitRef()) { attributes.put(CompConstants.shortLabel + ':' + CompConstants.unitRef, getUnitRef()); } if (isSetMetaIdRef()) { attributes.put(CompConstants.shortLabel + ':' + CompConstants.metaIdRef, getMetaIdRef()); } return attributes; }
@Override public Map<String, String> writeXMLAttributes() { Map<String, String> attributes = super.writeXMLAttributes(); int level = getLevel(), version = getVersion(); Locale en = Locale.ENGLISH;