diff options
Diffstat (limited to 'org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/cmd/StringNamespace.java')
-rw-r--r-- | org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/cmd/StringNamespace.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/cmd/StringNamespace.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/cmd/StringNamespace.java new file mode 100644 index 00000000000..8934bead46e --- /dev/null +++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/cmd/StringNamespace.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2004, 2007 Boeing. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Boeing - initial API and implementation + *******************************************************************************/ +package org.eclipse.osee.ote.core.cmd; + +import java.io.Serializable; + +public class StringNamespace implements Namespace, Serializable { + private static final long serialVersionUID = -8903438134102328929L; + private String namespace; + + public StringNamespace(String namespace){ + this.namespace = namespace; + } + + @Override + public boolean equals(Object arg0) { + if(arg0 instanceof StringNamespace){ + return namespace.equals(((StringNamespace)arg0).namespace); + } else { + return false; + } + } + + @Override + public int hashCode() { + return namespace.hashCode(); + } +} |