You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/04/03 09:56:47 UTC
svn commit: r525075 - in /incubator/tuscany/java/sca/scdl4j/policy/src:
main/java/org/apache/tuscany/policy/model/
main/java/org/apache/tuscany/policy/model/impl/
test/java/org/apache/tuscany/policy/model/
Author: jsdelfino
Date: Tue Apr 3 00:56:43 2007
New Revision: 525075
URL: http://svn.apache.org/viewvc?view=rev&rev=525075
Log:
Reformat java code according to Tuscany formatting rules.
Modified:
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/Intent.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentMap.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicyFactory.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySet.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/DefaultPolicyFactory.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentImpl.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentMapImpl.java
incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/PolicySetImpl.java
incubator/tuscany/java/sca/scdl4j/policy/src/test/java/org/apache/tuscany/policy/model/PolicyFactoryTestCase.java
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/Intent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/Intent.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/Intent.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/Intent.java Tue Apr 3 00:56:43 2007
@@ -24,73 +24,81 @@
import org.apache.tuscany.sca.idl.Operation;
-
-
/**
- * Represents a policy intent. See the Policy Framework specification for a description of this element.
+ * Represents a policy intent. See the Policy Framework specification for a
+ * description of this element.
*/
public interface Intent {
- /**
- * Returns the intent name.
- * @return the intent name
- */
- QName getName();
-
- /**
- * Sets the intent name
- * @param name the intent name
- */
- void setName(QName name);
-
- /**
- * Returns the list of operations that this intent applies to.
- * @return
- */
- List<Operation> getOperations();
-
- /**
- * Returns the list of SCA constructs that this intent is meant to configure.
- * @return the list of SCA constructs that this intent is meant to configure
- */
- List<QName> getConstrains();
-
- /**
- * Returns the list of required intents.
- * @return
- */
- List<Intent> getRequiredIntents();
-
- /**
- * Returns the list of children qualified intents.
- * @return the list of children qualified intents.
- */
- List<Intent> getQualifiedIntents();
-
- /**
- * Returns the intent description.
- * @return the intent description
- */
- String getDescription();
-
- /**
- * Sets the intent description.
- * @param description the intent description
- */
- void setDescription(String description);
-
- /**
- * Returns true if the model element is unresolved.
- *
- * @return true if the model element is unresolved.
- */
- boolean isUnresolved();
-
- /**
- * Sets whether the model element is unresolved.
- *
- * @param unresolved whether the model element is unresolved
- */
- void setUnresolved(boolean unresolved);
+ /**
+ * Returns the intent name.
+ *
+ * @return the intent name
+ */
+ QName getName();
+
+ /**
+ * Sets the intent name
+ *
+ * @param name the intent name
+ */
+ void setName(QName name);
+
+ /**
+ * Returns the list of operations that this intent applies to.
+ *
+ * @return
+ */
+ List<Operation> getOperations();
+
+ /**
+ * Returns the list of SCA constructs that this intent is meant to
+ * configure.
+ *
+ * @return the list of SCA constructs that this intent is meant to configure
+ */
+ List<QName> getConstrains();
+
+ /**
+ * Returns the list of required intents.
+ *
+ * @return
+ */
+ List<Intent> getRequiredIntents();
+
+ /**
+ * Returns the list of children qualified intents.
+ *
+ * @return the list of children qualified intents.
+ */
+ List<Intent> getQualifiedIntents();
+
+ /**
+ * Returns the intent description.
+ *
+ * @return the intent description
+ */
+ String getDescription();
+
+ /**
+ * Sets the intent description.
+ *
+ * @param description the intent description
+ */
+ void setDescription(String description);
+
+ /**
+ * Returns true if the model element is unresolved.
+ *
+ * @return true if the model element is unresolved.
+ */
+ boolean isUnresolved();
+
+ /**
+ * Sets whether the model element is unresolved.
+ *
+ * @param unresolved whether the model element is unresolved
+ */
+ void setUnresolved(boolean unresolved);
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java Tue Apr 3 00:56:43 2007
@@ -21,14 +21,17 @@
import java.util.List;
/**
- * Base interface for all assembly model objects that can be have policy intents attached to them.
+ * Base interface for all assembly model objects that can be have policy intents
+ * attached to them.
*/
public interface IntentAttachPoint {
- /**
- * Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.
- * @return a list of policy intents.
- */
- List<Intent> getRequiredIntents();
+ /**
+ * Returns a list of policy intents. See the Policy Framework specification
+ * for a description of this attribute.
+ *
+ * @return a list of policy intents.
+ */
+ List<Intent> getRequiredIntents();
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentMap.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentMap.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentMap.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/IntentMap.java Tue Apr 3 00:56:43 2007
@@ -20,63 +20,68 @@
import java.util.List;
-
-
-
/**
- * Represents a policy intent map. See the Policy Framework specification for a description of this element.
+ * Represents a policy intent map. See the Policy Framework specification for a
+ * description of this element.
*/
public interface IntentMap {
- /**
- * Returns the intent realized by this intent map.
- * @return the intent realized by this intent map
- */
- Intent getProvidedIntent();
-
- /**
- * Sets the intent realized by this intent map.
- * @param providedIntent the intent realized by this intent map
- */
- void setProvidedIntent(Intent providedIntent);
-
- /**
- * Returns the default qualified intent map.
- * @return the default qualified intent map
- */
- IntentMap getDefaultQualifiedIntentMap();
-
- /**
- * Sets the default qualified intent map.
- * @param defaultQualifiedIntentMap the default qualified intent map
- */
- void setDefaultQualifiedIntentMap(IntentMap defaultQualifiedIntentMap);
-
- /**
- * Returns the list of children qualified intent maps.
- * @return
- */
- List<IntentMap> getQualifiedIntentMaps();
-
- /**
- * Returns the list of concrete policies, either WS-Policy policy attachments, policy
- * references, or policies expressed in another policy language.
- * @return the list of concrete policies
- */
- List<Object> getPolicies();
-
- /**
- * Returns true if the model element is unresolved.
- *
- * @return true if the model element is unresolved.
- */
- boolean isUnresolved();
-
- /**
- * Sets whether the model element is unresolved.
- *
- * @param unresolved whether the model element is unresolved
- */
- void setUnresolved(boolean unresolved);
+ /**
+ * Returns the intent realized by this intent map.
+ *
+ * @return the intent realized by this intent map
+ */
+ Intent getProvidedIntent();
+
+ /**
+ * Sets the intent realized by this intent map.
+ *
+ * @param providedIntent the intent realized by this intent map
+ */
+ void setProvidedIntent(Intent providedIntent);
+
+ /**
+ * Returns the default qualified intent map.
+ *
+ * @return the default qualified intent map
+ */
+ IntentMap getDefaultQualifiedIntentMap();
+
+ /**
+ * Sets the default qualified intent map.
+ *
+ * @param defaultQualifiedIntentMap the default qualified intent map
+ */
+ void setDefaultQualifiedIntentMap(IntentMap defaultQualifiedIntentMap);
+
+ /**
+ * Returns the list of children qualified intent maps.
+ *
+ * @return
+ */
+ List<IntentMap> getQualifiedIntentMaps();
+
+ /**
+ * Returns the list of concrete policies, either WS-Policy policy
+ * attachments, policy references, or policies expressed in another policy
+ * language.
+ *
+ * @return the list of concrete policies
+ */
+ List<Object> getPolicies();
+
+ /**
+ * Returns true if the model element is unresolved.
+ *
+ * @return true if the model element is unresolved.
+ */
+ boolean isUnresolved();
+
+ /**
+ * Sets whether the model element is unresolved.
+ *
+ * @param unresolved whether the model element is unresolved
+ */
+ void setUnresolved(boolean unresolved);
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicyFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicyFactory.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicyFactory.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicyFactory.java Tue Apr 3 00:56:43 2007
@@ -18,29 +18,30 @@
*/
package org.apache.tuscany.policy.model;
-
-
/**
* A factory for the policy model.
*/
public interface PolicyFactory {
-
- /**
- * Create a new intent.
- * @return a new intent
- */
- Intent createIntent();
-
- /**
- * Create a new policy set.
- * @return a new policy set
- */
- PolicySet createPolicySet();
-
- /**
- * Create a new intent map.
- * @return a new intent map
- */
- IntentMap createIntentMap();
-
+
+ /**
+ * Create a new intent.
+ *
+ * @return a new intent
+ */
+ Intent createIntent();
+
+ /**
+ * Create a new policy set.
+ *
+ * @return a new policy set
+ */
+ PolicySet createPolicySet();
+
+ /**
+ * Create a new intent map.
+ *
+ * @return a new intent map
+ */
+ IntentMap createIntentMap();
+
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySet.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySet.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySet.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySet.java Tue Apr 3 00:56:43 2007
@@ -24,68 +24,77 @@
import org.apache.tuscany.sca.idl.Operation;
-
-
/**
- * Represents a policy set. See the Policy Framework specification for a description of this element.
+ * Represents a policy set. See the Policy Framework specification for a
+ * description of this element.
*/
public interface PolicySet {
-
- /**
- * Returns the intent name.
- * @return the intent name
- */
- QName getName();
-
- /**
- * Sets the intent name
- * @param name the intent name
- */
- void setName(QName name);
-
- /**
- * Returns the list of operations that this policy set applies to.
- * @return
- */
- List<Operation> getOperations();
-
- /**
- * Returns the list of
- * @return
- */
- List<PolicySet> getReferencedPolicySets();
-
- /**
- * Returns the list of provided intents
- * @return
- */
- List<Intent> getProvidedIntents();
-
- /**
- * Returns the list of SCA constructs that this policy set is meant to configure.
- * @return the list of SCA constructs that this policy set is meant to configure
- */
- List<QName> getAppliesTo();
-
- /**
- * Returns the list of concrete policies, either WS-Policy policy attachments, policy
- * references, or policies expressed in another policy language.
- * @return the list of concrete policies
- */
- List<Object> getPolicies();
-
- /**
- * Returns true if the model element is unresolved.
- *
- * @return true if the model element is unresolved.
- */
- boolean isUnresolved();
-
- /**
- * Sets whether the model element is unresolved.
- *
- * @param unresolved whether the model element is unresolved
- */
- void setUnresolved(boolean unresolved);
+
+ /**
+ * Returns the intent name.
+ *
+ * @return the intent name
+ */
+ QName getName();
+
+ /**
+ * Sets the intent name
+ *
+ * @param name the intent name
+ */
+ void setName(QName name);
+
+ /**
+ * Returns the list of operations that this policy set applies to.
+ *
+ * @return
+ */
+ List<Operation> getOperations();
+
+ /**
+ * Returns the list of
+ *
+ * @return
+ */
+ List<PolicySet> getReferencedPolicySets();
+
+ /**
+ * Returns the list of provided intents
+ *
+ * @return
+ */
+ List<Intent> getProvidedIntents();
+
+ /**
+ * Returns the list of SCA constructs that this policy set is meant to
+ * configure.
+ *
+ * @return the list of SCA constructs that this policy set is meant to
+ * configure
+ */
+ List<QName> getAppliesTo();
+
+ /**
+ * Returns the list of concrete policies, either WS-Policy policy
+ * attachments, policy references, or policies expressed in another policy
+ * language.
+ *
+ * @return the list of concrete policies
+ */
+ List<Object> getPolicies();
+
+ /**
+ * Returns true if the model element is unresolved.
+ *
+ * @return true if the model element is unresolved.
+ */
+ boolean isUnresolved();
+
+ /**
+ * Sets whether the model element is unresolved.
+ *
+ * @param unresolved whether the model element is unresolved
+ */
+ void setUnresolved(boolean unresolved);
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java Tue Apr 3 00:56:43 2007
@@ -21,14 +21,17 @@
import java.util.List;
/**
- * Base interface for all assembly model objects that can have policy sets attached to them.
+ * Base interface for all assembly model objects that can have policy sets
+ * attached to them.
*/
public interface PolicySetAttachPoint extends IntentAttachPoint {
- /**
- * Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.
- * @return a list of policy sets.
- */
- List<PolicySet> getPolicySets();
+ /**
+ * Returns a list of policy sets. See the Policy Framework specification for
+ * a description of this attribute.
+ *
+ * @return a list of policy sets.
+ */
+ List<PolicySet> getPolicySets();
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/DefaultPolicyFactory.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/DefaultPolicyFactory.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/DefaultPolicyFactory.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/DefaultPolicyFactory.java Tue Apr 3 00:56:43 2007
@@ -25,21 +25,21 @@
/**
* A factory for the policy model.
- *
- * @version $Rev$ $Date$
+ *
+ * @version $Rev$ $Date$
*/
public class DefaultPolicyFactory implements PolicyFactory {
- public Intent createIntent() {
- return new IntentImpl();
- }
+ public Intent createIntent() {
+ return new IntentImpl();
+ }
- public PolicySet createPolicySet() {
- return new PolicySetImpl();
- }
-
- public IntentMap createIntentMap() {
- return new IntentMapImpl();
- }
+ public PolicySet createPolicySet() {
+ return new PolicySetImpl();
+ }
+
+ public IntentMap createIntentMap() {
+ return new IntentMapImpl();
+ }
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentImpl.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentImpl.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentImpl.java Tue Apr 3 00:56:43 2007
@@ -28,56 +28,56 @@
/**
* Represents a policy intent.
- *
- * @version $Rev$ $Date$
+ *
+ * @version $Rev$ $Date$
*/
public class IntentImpl implements Intent {
-
- private QName name;
- private List<Operation> operations = new ArrayList<Operation>();
- private List<QName> constrains;
- private String description;
- private List<Intent> qualifiedIntents;
- private List<Intent> requiredIntents;
- private boolean unresolved;
-
- public QName getName() {
- return name;
- }
-
- public void setName(QName name) {
- this.name = name;
- }
-
- public List<Operation> getOperations() {
- return operations;
- }
-
- public List<QName> getConstrains() {
- return constrains;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public List<Intent> getQualifiedIntents() {
- return qualifiedIntents;
- }
-
- public List<Intent> getRequiredIntents() {
- return requiredIntents;
- }
-
- public boolean isUnresolved() {
- return unresolved;
- }
-
- public void setUnresolved(boolean unresolved) {
- this.unresolved = unresolved;
- }
+
+ private QName name;
+ private List<Operation> operations = new ArrayList<Operation>();
+ private List<QName> constrains;
+ private String description;
+ private List<Intent> qualifiedIntents;
+ private List<Intent> requiredIntents;
+ private boolean unresolved;
+
+ public QName getName() {
+ return name;
+ }
+
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+ public List<Operation> getOperations() {
+ return operations;
+ }
+
+ public List<QName> getConstrains() {
+ return constrains;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public List<Intent> getQualifiedIntents() {
+ return qualifiedIntents;
+ }
+
+ public List<Intent> getRequiredIntents() {
+ return requiredIntents;
+ }
+
+ public boolean isUnresolved() {
+ return unresolved;
+ }
+
+ public void setUnresolved(boolean unresolved) {
+ this.unresolved = unresolved;
+ }
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentMapImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentMapImpl.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentMapImpl.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/IntentMapImpl.java Tue Apr 3 00:56:43 2007
@@ -25,46 +25,46 @@
/**
* Represents an intent map.
- *
- * @version $Rev$ $Date$
+ *
+ * @version $Rev$ $Date$
*/
public class IntentMapImpl implements IntentMap {
-
- private boolean unresolved;
- private IntentMap defaultQualifiedIntentMap;
- private List<Object> policies;
- private Intent providedIntent;
- private List<IntentMap> qualifiedIntentMaps;
-
- public IntentMap getDefaultQualifiedIntentMap() {
- return defaultQualifiedIntentMap;
- }
-
- public List<Object> getPolicies() {
- return policies;
- }
-
- public Intent getProvidedIntent() {
- return providedIntent;
- }
-
- public List<IntentMap> getQualifiedIntentMaps() {
- return qualifiedIntentMaps;
- }
-
- public void setDefaultQualifiedIntentMap(IntentMap defaultQualifiedIntentMap) {
- this.defaultQualifiedIntentMap = defaultQualifiedIntentMap;
- }
-
- public void setProvidedIntent(Intent providedIntent) {
- this.providedIntent = providedIntent;
- }
-
- public boolean isUnresolved() {
- return unresolved;
- }
-
- public void setUnresolved(boolean unresolved) {
- this.unresolved = unresolved;
- }
+
+ private boolean unresolved;
+ private IntentMap defaultQualifiedIntentMap;
+ private List<Object> policies;
+ private Intent providedIntent;
+ private List<IntentMap> qualifiedIntentMaps;
+
+ public IntentMap getDefaultQualifiedIntentMap() {
+ return defaultQualifiedIntentMap;
+ }
+
+ public List<Object> getPolicies() {
+ return policies;
+ }
+
+ public Intent getProvidedIntent() {
+ return providedIntent;
+ }
+
+ public List<IntentMap> getQualifiedIntentMaps() {
+ return qualifiedIntentMaps;
+ }
+
+ public void setDefaultQualifiedIntentMap(IntentMap defaultQualifiedIntentMap) {
+ this.defaultQualifiedIntentMap = defaultQualifiedIntentMap;
+ }
+
+ public void setProvidedIntent(Intent providedIntent) {
+ this.providedIntent = providedIntent;
+ }
+
+ public boolean isUnresolved() {
+ return unresolved;
+ }
+
+ public void setUnresolved(boolean unresolved) {
+ this.unresolved = unresolved;
+ }
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/PolicySetImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/PolicySetImpl.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/PolicySetImpl.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/main/java/org/apache/tuscany/policy/model/impl/PolicySetImpl.java Tue Apr 3 00:56:43 2007
@@ -29,52 +29,52 @@
/**
* Represents a policy set.
- *
- * @version $Rev$ $Date$
+ *
+ * @version $Rev$ $Date$
*/
public class PolicySetImpl implements PolicySet {
-
- private QName name;
- private List<Operation> operations = new ArrayList<Operation>();
- private List<QName> appliesTo;
- private List<Intent> providedIntents;
- private List<PolicySet> referencedPolicySets;
- private List<Object> policies;
- private boolean unresolved;
-
- public QName getName() {
- return name;
- }
-
- public void setName(QName name) {
- this.name = name;
- }
-
- public List<Operation> getOperations() {
- return operations;
- }
-
- public List<QName> getAppliesTo() {
- return appliesTo;
- }
-
- public List<Intent> getProvidedIntents() {
- return providedIntents;
- }
-
- public List<PolicySet> getReferencedPolicySets() {
- return referencedPolicySets;
- }
-
- public List<Object> getPolicies() {
- return policies;
- }
-
- public boolean isUnresolved() {
- return unresolved;
- }
-
- public void setUnresolved(boolean unresolved) {
- this.unresolved = unresolved;
- }
+
+ private QName name;
+ private List<Operation> operations = new ArrayList<Operation>();
+ private List<QName> appliesTo;
+ private List<Intent> providedIntents;
+ private List<PolicySet> referencedPolicySets;
+ private List<Object> policies;
+ private boolean unresolved;
+
+ public QName getName() {
+ return name;
+ }
+
+ public void setName(QName name) {
+ this.name = name;
+ }
+
+ public List<Operation> getOperations() {
+ return operations;
+ }
+
+ public List<QName> getAppliesTo() {
+ return appliesTo;
+ }
+
+ public List<Intent> getProvidedIntents() {
+ return providedIntents;
+ }
+
+ public List<PolicySet> getReferencedPolicySets() {
+ return referencedPolicySets;
+ }
+
+ public List<Object> getPolicies() {
+ return policies;
+ }
+
+ public boolean isUnresolved() {
+ return unresolved;
+ }
+
+ public void setUnresolved(boolean unresolved) {
+ this.unresolved = unresolved;
+ }
}
Modified: incubator/tuscany/java/sca/scdl4j/policy/src/test/java/org/apache/tuscany/policy/model/PolicyFactoryTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/scdl4j/policy/src/test/java/org/apache/tuscany/policy/model/PolicyFactoryTestCase.java?view=diff&rev=525075&r1=525074&r2=525075
==============================================================================
--- incubator/tuscany/java/sca/scdl4j/policy/src/test/java/org/apache/tuscany/policy/model/PolicyFactoryTestCase.java (original)
+++ incubator/tuscany/java/sca/scdl4j/policy/src/test/java/org/apache/tuscany/policy/model/PolicyFactoryTestCase.java Tue Apr 3 00:56:43 2007
@@ -26,30 +26,30 @@
/**
* Test building of policy model instances using the policy factory.
- *
- * @version $Rev$ $Date$
+ *
+ * @version $Rev$ $Date$
*/
public class PolicyFactoryTestCase extends TestCase {
-
- PolicyFactory factory;
- public void setUp() throws Exception {
- factory = new DefaultPolicyFactory();
- }
+ PolicyFactory factory;
- public void tearDown() throws Exception {
- factory = null;
- }
+ public void setUp() throws Exception {
+ factory = new DefaultPolicyFactory();
+ }
- public void testCreateIntent() {
- Intent intent = factory.createIntent();
- intent.setName(new QName("http://test", "reliability"));
- assertEquals(intent.getName(), new QName("http://test", "reliability"));
- }
+ public void tearDown() throws Exception {
+ factory = null;
+ }
- public void testCreatePolicySet() {
- PolicySet policySet = factory.createPolicySet();
- policySet.setName(new QName("http://test", "reliability"));
- assertEquals(policySet.getName(), new QName("http://test", "reliability"));
- }
+ public void testCreateIntent() {
+ Intent intent = factory.createIntent();
+ intent.setName(new QName("http://test", "reliability"));
+ assertEquals(intent.getName(), new QName("http://test", "reliability"));
+ }
+
+ public void testCreatePolicySet() {
+ PolicySet policySet = factory.createPolicySet();
+ policySet.setName(new QName("http://test", "reliability"));
+ assertEquals(policySet.getName(), new QName("http://test", "reliability"));
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org