Author: mes
Date: 2011-12-14 13:00:07 -0800 (Wed, 14 Dec 2011)
New Revision: 27791
Removed:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/CyVersionImpl.java
Log:
removed unused duplicate file. The actual impl can be found in application-impl
Deleted:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/CyVersionImpl.java
===================================================================
---
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/CyVersionImpl.java
2011-12-14 20:22:21 UTC (rev 27790)
+++
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/CyVersionImpl.java
2011-12-14 21:00:07 UTC (rev 27791)
@@ -1,110 +0,0 @@
-/*
- File: CytoscapeVersion.java
-
- Copyright (c) 2006, The Cytoscape Consortium (www.cytoscape.org)
-
- The Cytoscape Consortium is:
- - Institute for Systems Biology
- - University of California San Diego
- - Memorial Sloan-Kettering Cancer Center
- - Institut Pasteur
- - Agilent Technologies
-
- This library is free software; you can redistribute it and/or modify it
- under the terms of the GNU Lesser General Public License as published
- by the Free Software Foundation; either version 2.1 of the License, or
- any later version.
-
- This library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. The software and
- documentation provided hereunder is on an "as is" basis, and the
- Institute for Systems Biology and the Whitehead Institute
- have no obligations to provide maintenance, support,
- updates, enhancements or modifications. In no event shall the
- Institute for Systems Biology and the Whitehead Institute
- be liable to any party for direct, indirect, special,
- incidental or consequential damages, including lost profits, arising
- out of the use of this software and its documentation, even if the
- Institute for Systems Biology and the Whitehead Institute
- have been advised of the possibility of such damage. See
- the GNU Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with this library; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
- */
-package org.cytoscape.internal;
-
-import java.util.Properties;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.cytoscape.application.CyVersion;
-import org.cytoscape.property.CyProperty;
-
-/**
- * Identify the version of cytoscape.
- */
-public class CyVersionImpl implements CyVersion {
-
- private final static Pattern p =
Pattern.compile(CyVersion.VERSION_REGEX);
-
- private final int major;
- private final int minor;
- private final int bugfix;
- private final String qualifier;
- private final String version;
-
- public CyVersionImpl(final CyProperty<Properties> props) {
- version =
props.getProperties().getProperty(CyVersion.VERSION_PROPERTY_NAME);
-
- if ( version == null )
- throw new NullPointerException("No version number found
in the provided properties with property name: " +
CyVersion.VERSION_PROPERTY_NAME);
-
- Matcher m = p.matcher(version);
-
- if ( !m.matches() )
- throw new IllegalArgumentException("Malformed version
number: " + version + " The version number must match this regular expression:
" + CyVersion.VERSION_REGEX);
-
- major = Integer.parseInt(m.group(1));
- minor = Integer.parseInt(m.group(2));
- bugfix = Integer.parseInt(m.group(3));
- qualifier = m.group(4);
- }
-
- /**
- * @inheritdoc
- */
- public String getVersion() {
- return version;
- }
-
- /**
- * @inheritdoc
- */
- public int getMajorVersion() {
- return major;
- }
-
- /**
- * @inheritdoc
- */
- public int getMinorVersion() {
- return minor;
- }
-
- /**
- * @inheritdoc
- */
- public int getBugFixVersion() {
- return bugfix;
- }
-
- /**
- * @inheritdoc
- */
- public String getQualifier() {
- return qualifier;
- }
-}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.