You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2016/09/07 12:14:49 UTC

incubator-taverna-plugin-bioinformatics git commit: unix file ending

Repository: incubator-taverna-plugin-bioinformatics
Updated Branches:
  refs/heads/master 33e003af2 -> 314c60956


unix file ending


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-bioinformatics/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-bioinformatics/commit/314c6095
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-bioinformatics/tree/314c6095
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-bioinformatics/diff/314c6095

Branch: refs/heads/master
Commit: 314c609567d70820f6f765f192614f3c4f22b663
Parents: 33e003a
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Wed Sep 7 13:14:37 2016 +0100
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Wed Sep 7 13:14:37 2016 +0100

----------------------------------------------------------------------
 .../biomart/martservice/query/Attribute.java    | 330 +++++++++----------
 1 file changed, 165 insertions(+), 165 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-plugin-bioinformatics/blob/314c6095/taverna-biomart-martservice/src/main/java/org/biomart/martservice/query/Attribute.java
----------------------------------------------------------------------
diff --git a/taverna-biomart-martservice/src/main/java/org/biomart/martservice/query/Attribute.java b/taverna-biomart-martservice/src/main/java/org/biomart/martservice/query/Attribute.java
index 45dc0d4..a6bdcf7 100644
--- a/taverna-biomart-martservice/src/main/java/org/biomart/martservice/query/Attribute.java
+++ b/taverna-biomart-martservice/src/main/java/org/biomart/martservice/query/Attribute.java
@@ -1,165 +1,165 @@
-package org.biomart.martservice.query;
-
-/**
- * Class for creating attribute elements of mart queries.
- * 
- * @author David Withers
- */
-public class Attribute {
-	private String name;
-
-	private String attributes;
-	
-	private int attributesCount;
-
-	private Dataset containingDataset;
-
-	/**
-	 * Constructs an instance of an <code>Attribute</code> with the specified name.
-	 * 
-	 * @param name
-	 *            the name of the <code>Attribute</code>; must not be <code>null</code>
-	 */
-	public Attribute(String name) {
-		if (name == null) {
-			throw new IllegalArgumentException("Parameter 'name' must not be null");
-		}
-		this.name = name;
-	}
-
-	/**
-	 * Constructs an instance of an <code>Attribute</code> which is a copy of
-	 * another <code>Attribute</code>.
-	 * 
-	 * @param attribute
-	 *            the <code>Attribute</code> to copy; must not be <code>null</code>
-	 */
-	public Attribute(Attribute attribute) {
-		if (attribute == null) {
-			throw new IllegalArgumentException("Parameter 'attribute' must not be null");
-		}
-		setName(attribute.getName());
-		setAttributes(attribute.getAttributes());
-	}
-
-	/**
-	 * Returns the name of the Attribute.
-	 * 
-	 * @return the name of the Attribute
-	 */
-	public String getName() {
-		return name;
-	}
-
-	/**
-	 * Sets the name of the Attribute.
-	 * 
-	 * @param name
-	 *            the name of the Attribute; must not be <code>null</code>
-	 */
-	public void setName(String name) {
-		if (name == null) {
-			throw new IllegalArgumentException("Parameter 'name' must not be null");
-		}
-		this.name = name;
-	}
-
-	/**
-	 * Returns the qualified name of this <code>Attribute</code>.
-	 * 
-	 * The qualified name is <code>containingDatasetName.attributeName</code>
-	 * or just <code>attributeName</code> if the <code>Attribute</code> is
-	 * not in a <code>Dataset</code>.
-	 * 
-	 * @return the qualified name of this <code>Attribute</code>
-	 */
-	public String getQualifiedName() {
-		if (containingDataset == null) {
-			return name;
-		} else {
-			return containingDataset.getName() + "." + getName();
-		}
-	}
-
-	/**
-	 * Returns the component attributes as a comma separated list.
-	 *
-	 * @return the attributes as a comma separated list or null if there are no component attributes
-	 */
-	public String getAttributes() {
-		return attributes;
-	}
-
-	/**
-	 * Sets the attributes.
-	 *
-	 * @param attributes the new attributes
-	 */
-	public void setAttributes(String attributes) {
-		this.attributes = attributes;
-		if (attributes == null) {
-			attributesCount = 0;
-		} else {
-			attributesCount = attributes.split(",").length;
-		}
-	}
-	
-	/**
-	 * Returns the number of component attributes.
-	 * 
-	 * @return the number of component attributes
-	 */
-	public int getAttributesCount() {
-		return attributesCount;
-	}
-
-	/**
-	 * Returns the Dataset containing this Attribute or null if it is not in a
-	 * Dataset.
-	 * 
-	 * @return the Dataset containing this Attribute or null if it is not in a
-	 *         Dataset
-	 */
-	public Dataset getContainingDataset() {
-		return containingDataset;
-	}
-
-	/**
-	 * Sets the containing Dataset.
-	 * 
-	 * @param dataset
-	 *            the containing Dataset
-	 */
-	void setContainingDataset(Dataset dataset) {
-		this.containingDataset = dataset;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see java.lang.Object#equals(java.lang.Object)
-	 */
-	public boolean equals(Object obj) {
-		boolean result = false;
-		if (obj != null) {
-			Attribute attribute = (Attribute) obj;
-			String qualifiedName = getQualifiedName();
-			if (qualifiedName == null) {
-				result = attribute.getQualifiedName() == null;
-			} else {
-				result =  qualifiedName.equals(attribute.getQualifiedName());
-			}
-		}
-		return result;
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * 
-	 * @see java.lang.Object#hashCode()
-	 */
-	public int hashCode() {
-		return getQualifiedName().hashCode();
-	}
-
-}
+package org.biomart.martservice.query;
+
+/**
+ * Class for creating attribute elements of mart queries.
+ * 
+ * @author David Withers
+ */
+public class Attribute {
+	private String name;
+
+	private String attributes;
+	
+	private int attributesCount;
+
+	private Dataset containingDataset;
+
+	/**
+	 * Constructs an instance of an <code>Attribute</code> with the specified name.
+	 * 
+	 * @param name
+	 *            the name of the <code>Attribute</code>; must not be <code>null</code>
+	 */
+	public Attribute(String name) {
+		if (name == null) {
+			throw new IllegalArgumentException("Parameter 'name' must not be null");
+		}
+		this.name = name;
+	}
+
+	/**
+	 * Constructs an instance of an <code>Attribute</code> which is a copy of
+	 * another <code>Attribute</code>.
+	 * 
+	 * @param attribute
+	 *            the <code>Attribute</code> to copy; must not be <code>null</code>
+	 */
+	public Attribute(Attribute attribute) {
+		if (attribute == null) {
+			throw new IllegalArgumentException("Parameter 'attribute' must not be null");
+		}
+		setName(attribute.getName());
+		setAttributes(attribute.getAttributes());
+	}
+
+	/**
+	 * Returns the name of the Attribute.
+	 * 
+	 * @return the name of the Attribute
+	 */
+	public String getName() {
+		return name;
+	}
+
+	/**
+	 * Sets the name of the Attribute.
+	 * 
+	 * @param name
+	 *            the name of the Attribute; must not be <code>null</code>
+	 */
+	public void setName(String name) {
+		if (name == null) {
+			throw new IllegalArgumentException("Parameter 'name' must not be null");
+		}
+		this.name = name;
+	}
+
+	/**
+	 * Returns the qualified name of this <code>Attribute</code>.
+	 * 
+	 * The qualified name is <code>containingDatasetName.attributeName</code>
+	 * or just <code>attributeName</code> if the <code>Attribute</code> is
+	 * not in a <code>Dataset</code>.
+	 * 
+	 * @return the qualified name of this <code>Attribute</code>
+	 */
+	public String getQualifiedName() {
+		if (containingDataset == null) {
+			return name;
+		} else {
+			return containingDataset.getName() + "." + getName();
+		}
+	}
+
+	/**
+	 * Returns the component attributes as a comma separated list.
+	 *
+	 * @return the attributes as a comma separated list or null if there are no component attributes
+	 */
+	public String getAttributes() {
+		return attributes;
+	}
+
+	/**
+	 * Sets the attributes.
+	 *
+	 * @param attributes the new attributes
+	 */
+	public void setAttributes(String attributes) {
+		this.attributes = attributes;
+		if (attributes == null) {
+			attributesCount = 0;
+		} else {
+			attributesCount = attributes.split(",").length;
+		}
+	}
+	
+	/**
+	 * Returns the number of component attributes.
+	 * 
+	 * @return the number of component attributes
+	 */
+	public int getAttributesCount() {
+		return attributesCount;
+	}
+
+	/**
+	 * Returns the Dataset containing this Attribute or null if it is not in a
+	 * Dataset.
+	 * 
+	 * @return the Dataset containing this Attribute or null if it is not in a
+	 *         Dataset
+	 */
+	public Dataset getContainingDataset() {
+		return containingDataset;
+	}
+
+	/**
+	 * Sets the containing Dataset.
+	 * 
+	 * @param dataset
+	 *            the containing Dataset
+	 */
+	void setContainingDataset(Dataset dataset) {
+		this.containingDataset = dataset;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#equals(java.lang.Object)
+	 */
+	public boolean equals(Object obj) {
+		boolean result = false;
+		if (obj != null) {
+			Attribute attribute = (Attribute) obj;
+			String qualifiedName = getQualifiedName();
+			if (qualifiedName == null) {
+				result = attribute.getQualifiedName() == null;
+			} else {
+				result =  qualifiedName.equals(attribute.getQualifiedName());
+			}
+		}
+		return result;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see java.lang.Object#hashCode()
+	 */
+	public int hashCode() {
+		return getQualifiedName().hashCode();
+	}
+
+}