private void parseInstruction(String prefix, Map<String, ITouchpointInstruction> instructions) { String phase = current.substring(current.lastIndexOf('.') + 1); String body = currentValue(); next(); prefix += '.'; String importAttribute = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(IMPORT)) { importAttribute = currentValue(); } else { // we ignore elements we do not understand } next(); } ITouchpointInstruction instruction = MetadataFactory.createTouchpointInstruction(body, importAttribute); instructions.put(phase, instruction); }
private void parseInstruction(String prefix, Map<String, ITouchpointInstruction> instructions) { String phase = current.substring(current.lastIndexOf('.') + 1); String body = currentValue(); next(); prefix += '.'; String importAttribute = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(IMPORT)) { importAttribute = currentValue(); } else { // we ignore elements we do not understand } next(); } ITouchpointInstruction instruction = MetadataFactory.createTouchpointInstruction(body, importAttribute); instructions.put(phase, instruction); }
private void parseInstruction(String prefix, Map<String, ITouchpointInstruction> instructions) { String phase = current.substring(current.lastIndexOf('.') + 1); String body = currentValue(); next(); prefix += '.'; String importAttribute = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(IMPORT)) { importAttribute = currentValue(); } else { // we ignore elements we do not understand } next(); } ITouchpointInstruction instruction = MetadataFactory.createTouchpointInstruction(body, importAttribute); instructions.put(phase, instruction); }
private void parseProperty(String prefix, Map<String, String> properties) { String propertyName = null; String propertyValue = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { propertyName = currentValue(); } else if (token.equals(VALUE)) { propertyValue = currentValue(); } else { // we ignore elements we do not understand } next(); } properties.put(propertyName, propertyValue); }
private void parseProperty(String prefix, Map<String, String> properties) { String propertyName = null; String propertyValue = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { propertyName = currentValue(); } else if (token.equals(VALUE)) { propertyValue = currentValue(); } else { // we ignore elements we do not understand } next(); } properties.put(propertyName, propertyValue); }
private void parseInstruction(String prefix, Map<String, ITouchpointInstruction> instructions) { String phase = current.substring(current.lastIndexOf('.') + 1); String body = currentValue(); next(); prefix += '.'; String importAttribute = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(IMPORT)) { importAttribute = currentValue(); } else { // we ignore elements we do not understand } next(); } ITouchpointInstruction instruction = MetadataFactory.createTouchpointInstruction(body, importAttribute); instructions.put(phase, instruction); }
private void parseProperty(String prefix, Map<String, String> properties) { String propertyName = null; String propertyValue = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { propertyName = currentValue(); } else if (token.equals(VALUE)) { propertyValue = currentValue(); } else { // we ignore elements we do not understand } next(); } properties.put(propertyName, propertyValue); }
private void parseProperty(String prefix, Map<String, String> properties) { String propertyName = null; String propertyValue = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { propertyName = currentValue(); } else if (token.equals(VALUE)) { propertyValue = currentValue(); } else { // we ignore elements we do not understand } next(); } properties.put(propertyName, propertyValue); }
private void parseLicense(String prefix, List<ILicense> licenses) { String body = currentValue(); next(); prefix += '.'; String location = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(LOCATION)) { location = currentValue(); } else { // we ignore elements we do not understand } next(); } try { URI uri = location != null ? new URI(location) : null; ILicense license = MetadataFactory.createLicense(uri, body); licenses.add(license); } catch (URISyntaxException e) { throw new IllegalStateException("bad license URI at token: " + current + ", " + currentValue()); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void parseLicense(String prefix, List<ILicense> licenses) { String body = currentValue(); next(); prefix += '.'; String location = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(LOCATION)) { location = currentValue(); } else { // we ignore elements we do not understand } next(); } try { URI uri = location != null ? new URI(location) : null; ILicense license = MetadataFactory.createLicense(uri, body); licenses.add(license); } catch (URISyntaxException e) { throw new IllegalStateException("bad license URI at token: " + current + ", " + currentValue()); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void parseLicense(String prefix, List<ILicense> licenses) { String body = currentValue(); next(); prefix += '.'; String location = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(LOCATION)) { location = currentValue(); } else { // we ignore elements we do not understand } next(); } try { URI uri = location != null ? new URI(location) : null; ILicense license = MetadataFactory.createLicense(uri, body); licenses.add(license); } catch (URISyntaxException e) { throw new IllegalStateException("bad license URI at token: " + current + ", " + currentValue()); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void parseLicense(String prefix, List<ILicense> licenses) { String body = currentValue(); next(); prefix += '.'; String location = null; if (current != null && current.startsWith(prefix)) { if (current.substring(prefix.length()).equals(LOCATION)) { location = currentValue(); } else { // we ignore elements we do not understand } next(); } try { URI uri = location != null ? new URI(location) : null; ILicense license = MetadataFactory.createLicense(uri, body); licenses.add(license); } catch (URISyntaxException e) { throw new IllegalStateException("bad license URI at token: " + current + ", " + currentValue()); //$NON-NLS-1$ //$NON-NLS-2$ } }
private void parseProvided(String prefix, List<IProvidedCapability> provides) { String namespace = null; String name = null; Version capabilityVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { name = currentValue(); } else if (token.equals(NAMESPACE)) { namespace = currentValue(); } else if (token.equals(VERSION)) { capabilityVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IProvidedCapability capability = MetadataFactory.createProvidedCapability(namespace, name, capabilityVersion); provides.add(capability); }
private void parseArtifact(String prefix, List<IArtifactKey> artifacts) { String artifactClassifier = null; String artifactId = null; Version artifactVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(CLASSIFIER)) { artifactClassifier = currentValue(); } else if (token.equals(ID)) { artifactId = currentValue(); } else if (token.equals(VERSION)) { artifactVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IArtifactKey artifactKey = new ArtifactKey(artifactClassifier, artifactId, artifactVersion); artifacts.add(artifactKey); }
private void parseArtifact(String prefix, List<IArtifactKey> artifacts) { String artifactClassifier = null; String artifactId = null; Version artifactVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(CLASSIFIER)) { artifactClassifier = currentValue(); } else if (token.equals(ID)) { artifactId = currentValue(); } else if (token.equals(VERSION)) { artifactVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IArtifactKey artifactKey = new ArtifactKey(artifactClassifier, artifactId, artifactVersion); artifacts.add(artifactKey); }
private void parseArtifact(String prefix, List<IArtifactKey> artifacts) { String artifactClassifier = null; String artifactId = null; Version artifactVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(CLASSIFIER)) { artifactClassifier = currentValue(); } else if (token.equals(ID)) { artifactId = currentValue(); } else if (token.equals(VERSION)) { artifactVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IArtifactKey artifactKey = new ArtifactKey(artifactClassifier, artifactId, artifactVersion); artifacts.add(artifactKey); }
private void parseProvided(String prefix, List<IProvidedCapability> provides) { String namespace = null; String name = null; Version capabilityVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { name = currentValue(); } else if (token.equals(NAMESPACE)) { namespace = currentValue(); } else if (token.equals(VERSION)) { capabilityVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IProvidedCapability capability = MetadataFactory.createProvidedCapability(namespace, name, capabilityVersion); provides.add(capability); }
private void parseProvided(String prefix, List<IProvidedCapability> provides) { String namespace = null; String name = null; Version capabilityVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { name = currentValue(); } else if (token.equals(NAMESPACE)) { namespace = currentValue(); } else if (token.equals(VERSION)) { capabilityVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IProvidedCapability capability = MetadataFactory.createProvidedCapability(namespace, name, capabilityVersion); provides.add(capability); }
private void parseProvided(String prefix, List<IProvidedCapability> provides) { String namespace = null; String name = null; Version capabilityVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(NAME)) { name = currentValue(); } else if (token.equals(NAMESPACE)) { namespace = currentValue(); } else if (token.equals(VERSION)) { capabilityVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IProvidedCapability capability = MetadataFactory.createProvidedCapability(namespace, name, capabilityVersion); provides.add(capability); }
private void parseArtifact(String prefix, List<IArtifactKey> artifacts) { String artifactClassifier = null; String artifactId = null; Version artifactVersion = null; while (current != null && current.startsWith(prefix)) { String token = current.substring(prefix.length()); if (token.equals(CLASSIFIER)) { artifactClassifier = currentValue(); } else if (token.equals(ID)) { artifactId = currentValue(); } else if (token.equals(VERSION)) { artifactVersion = Version.parseVersion(substituteVersionAndQualifier(currentValue())); } else { // we ignore elements we do not understand } next(); } IArtifactKey artifactKey = new ArtifactKey(artifactClassifier, artifactId, artifactVersion); artifacts.add(artifactKey); }