From 5c4a561575759f774e82a50adce80ccc2fcb415c Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 26 Oct 2010 14:06:37 +0000 Subject: Delete old rc1 tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1027565 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/policy/impl/IntentImpl.java | 168 --------------------- 1 file changed, 168 deletions(-) delete mode 100644 sca-java-2.x/tags/2.0-Beta1-RC1/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java (limited to 'sca-java-2.x/tags/2.0-Beta1-RC1/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java') diff --git a/sca-java-2.x/tags/2.0-Beta1-RC1/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java b/sca-java-2.x/tags/2.0-Beta1-RC1/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java deleted file mode 100644 index 27a77f3ba8..0000000000 --- a/sca-java-2.x/tags/2.0-Beta1-RC1/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/impl/IntentImpl.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.policy.impl; - -import java.util.ArrayList; -import java.util.List; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.policy.ExtensionType; -import org.apache.tuscany.sca.policy.Intent; - -/** - * Represents a policy intent. - * - * @version $Rev$ $Date$ - */ -public class IntentImpl implements Intent { - - private QName name; - private Type type; - private List constrainedTypes = new ArrayList(); - private String description; - private List qualifiedIntents = new ArrayList(); - private Intent defaultQualifiedIntent; - private Intent parent; - private List requiredIntents = new ArrayList(); - private List excludedIntents = new ArrayList(); - private boolean mutuallyExclusive; - private boolean unresolved = true; - - protected IntentImpl() { - } - - public QName getName() { - return name; - } - - public void setName(QName name) { - this.name = name; - } - - public List getConstrainedTypes() { - return constrainedTypes; - } - - public void setConstrainedTypes(List constrainedTypes) { - this.constrainedTypes = constrainedTypes; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Intent getQualifiableIntent() { - return parent; - } - - public void setQualifiableIntent(Intent parent) { - this.parent = parent; - } - - public List getQualifiedIntents() { - return qualifiedIntents; - } - - public void setQualifiedIntents(List qualifiedIntents) { - this.qualifiedIntents = qualifiedIntents; - } - - public List getRequiredIntents() { - return requiredIntents; - } - - public void setRequiredIntents(List requiredIntents) { - this.requiredIntents = requiredIntents; - } - - public List getExcludedIntents() { - return excludedIntents; - } - - public void setExcludedIntents(List excludedIntents) { - this.excludedIntents = excludedIntents; - } - - public boolean isUnresolved() { - return unresolved; - } - - public void setUnresolved(boolean unresolved) { - this.unresolved = unresolved; - } - - public Type getType() { - return type; - } - - public void setType(Type type) { - this.type = type; - } - - public boolean isMutuallyExclusive() { - return mutuallyExclusive; - } - - public void setMutuallyExclusive(boolean mutuallyExclusive) { - this.mutuallyExclusive = mutuallyExclusive; - } - - public Intent getDefaultQualifiedIntent() { - return defaultQualifiedIntent; - } - - public void setDefaultQualifiedIntent(Intent defaultQualifiedIntent) { - this.defaultQualifiedIntent = defaultQualifiedIntent; - } - - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((name == null) ? 0 : name.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - IntentImpl other = (IntentImpl)obj; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - return true; - } - - public String toString() { - return String.valueOf(name); - } -} -- cgit v1.2.3