private boolean versionRangePatternMatches(Version version) { if (versionRangeReq == null) return true; return versionRangeReq.isIncluded(version); } }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { // TODO: should the root handler be constructed based on class // via an extension registry mechanism? // String clazz = extractPIClass(data); // TODO: version tolerance by extension Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_incompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!MetadataRepositoryIO.XMLConstants.XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_IncompatibleVersion, repositoryVersion, MetadataRepositoryIO.XMLConstants.XML_TOLERANCE)); } } }
private void checkAdviceVersion(String adviceVersion) { Version version = Version.parseVersion(adviceVersion); if (!VERSION_TOLERANCE.isIncluded(version)) throw new IllegalStateException("bad version: " + version + ". Expected range was " + VERSION_TOLERANCE); //$NON-NLS-1$ //$NON-NLS-2$ }
public void processingInstruction(String target, String data) throws SAXException { if (repositoryType.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_IncompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } } }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { // TODO: should the root handler be constructed based on class // via an extension registry mechanism? // String clazz = extractPIClass(data); // TODO: version tolerance by extension Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_incompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } }
@Override public void processingInstruction(String target, String data) throws SAXException { if (ProfileXMLConstants.PROFILE_TARGET.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!ProfileXMLConstants.XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.SimpleProfileRegistry_Parser_Has_Incompatible_Version, repositoryVersion, ProfileXMLConstants.XML_TOLERANCE)); } } } }
private void checkAdviceVersion(String adviceVersion) { Version version = Version.parseVersion(adviceVersion); if (!VERSION_TOLERANCE.isIncluded(version)) throw new IllegalStateException("bad version: " + version + ". Expected range was " + VERSION_TOLERANCE); //$NON-NLS-1$ //$NON-NLS-2$ }
public void processingInstruction(String target, String data) throws SAXException { if (ProfileXMLConstants.PROFILE_TARGET.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!ProfileXMLConstants.XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.SimpleProfileRegistry_Parser_Has_Incompatible_Version, repositoryVersion, ProfileXMLConstants.XML_TOLERANCE)); } } } }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!MetadataRepositoryIO.XMLConstants.XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_IncompatibleVersion, repositoryVersion, MetadataRepositoryIO.XMLConstants.XML_TOLERANCE)); } } }
private void checkAdviceVersion(String adviceVersion) { Version version = Version.parseVersion(adviceVersion); if (!VERSION_TOLERANCE.isIncluded(version)) throw new IllegalStateException("bad version: " + version + ". Expected range was " + VERSION_TOLERANCE); //$NON-NLS-1$ //$NON-NLS-2$ }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!MetadataRepositoryIO.XMLConstants.XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_IncompatibleVersion, repositoryVersion, MetadataRepositoryIO.XMLConstants.XML_TOLERANCE)); } } }
public void processingInstruction(String target, String data) throws SAXException { if (repositoryType.equals(target)) { Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_IncompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } } }
public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { // TODO: should the root handler be constructed based on class // via an extension registry mechanism? // String clazz = extractPIClass(data); // TODO: version tolerance by extension Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_incompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } }
private void checkAdviceVersion(String adviceVersion) { Version version = Version.parseVersion(adviceVersion); if (!VERSION_TOLERANCE.isIncluded(version)) throw new IllegalStateException("bad version: " + version + ". Expected range was " + VERSION_TOLERANCE); //$NON-NLS-1$ //$NON-NLS-2$ }
@Override public void processingInstruction(String target, String data) throws SAXException { if (PI_REPOSITORY_TARGET.equals(target)) { // TODO: should the root handler be constructed based on class // via an extension registry mechanism? // String clazz = extractPIClass(data); // TODO: version tolerance by extension Version repositoryVersion = extractPIVersion(target, data); if (!XML_TOLERANCE.isIncluded(repositoryVersion)) { throw new SAXException(NLS.bind(Messages.io_incompatibleVersion, repositoryVersion, XML_TOLERANCE)); } } }
protected boolean matchVersion(Version version) { if (version == null) return true; Version adviceVersion = getVersion(); if (adviceVersion != null) return version.equals(adviceVersion); VersionRange range = getVersionRange(); if (range != null) return range.isIncluded(version); return true; }
protected boolean matchVersion(Version version) { if (version == null) return true; Version adviceVersion = getVersion(); if (adviceVersion != null) return version.equals(adviceVersion); VersionRange range = getVersionRange(); if (range != null) return range.isIncluded(version); return true; }
protected boolean matchVersion(Version version) { if (version == null) return true; Version adviceVersion = getVersion(); if (adviceVersion != null) return version.equals(adviceVersion); VersionRange range = getVersionRange(); if (range != null) return range.isIncluded(version); return true; }
protected boolean matchVersion(Version version) { if (version == null) return true; Version adviceVersion = getVersion(); if (adviceVersion != null) return version.equals(adviceVersion); VersionRange range = getVersionRange(); if (range != null) return range.isIncluded(version); return true; }