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/03/15 08:17:58 UTC

svn commit: r518503 - in /incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi: ./ model/

Author: jsdelfino
Date: Thu Mar 15 00:17:57 2007
New Revision: 518503

URL: http://svn.apache.org/viewvc?view=rev&rev=518503
Log:
Moving the policy model classes to the policy module.

Added:
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java   (with props)
    incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java   (with props)

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,92 @@
+/*
+ * 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.spi.model;
+
+import java.util.ArrayList;
+import static java.util.Collections.unmodifiableList;
+import java.util.List;
+import javax.xml.namespace.QName;
+
+/**
+ * Model representation for intent. This class is used by intent loader only, other SCA model classes will not reference
+ * this class directly.
+ *
+ * @version $Rev$ $Date$
+ */
+public class Intent {
+
+    /**
+     * name of intent.
+     */
+    protected IntentName name;
+
+    /**
+     * Description for this intent
+     */
+    protected String description;
+
+    /**
+     * QNames of artifacts this intent can apply to
+     */
+    protected List<QName> appliedArtifacts = new ArrayList<QName>();
+
+    /**
+     * intents required by this intent, only useful when this intent is a profile intent
+     */
+    protected List<IntentName> requriedIntents = new ArrayList<IntentName>();
+
+    /**
+     * Create a policy intent.
+     *
+     * @param name        name of the intent.
+     * @param description description of the intent.
+     */
+    public Intent(IntentName name, String description) {
+        this.name = name;
+        this.description = description;
+    }
+
+    public List<QName> getAppliedArtifacts() {
+        return unmodifiableList(appliedArtifacts);
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public IntentName getName() {
+        return name;
+    }
+
+    public List<IntentName> getRequriedIntents() {
+        return unmodifiableList(requriedIntents);
+    }
+
+    public void addRequriedIntents(IntentName intent) {
+        requriedIntents.add(intent);
+    }
+
+    public void addAppliedArtifacts(QName artifactName) {
+        appliedArtifacts.add(artifactName);
+    }
+
+    public boolean isProfileIntent() {
+        return !requriedIntents.isEmpty();
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Intent.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,64 @@
+/*
+ * 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.spi.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import static java.util.Collections.unmodifiableCollection;
+
+/**
+ * Represents an IntentMap within PolicySet.
+ *
+ * @version $Rev$ $Date$
+ */
+public class IntentMap extends PolicyModel {
+
+    /*  Name of default intent provied by this IntentMap */
+    private String defaultProvideIntent;
+
+    /* Name of intent provided by this IntentMap */
+    private Collection<String> provideIntents = new ArrayList<String>();
+
+    /* Qualifiers of this IntentMap */
+    private Collection<Qualifier> qualifiers = new ArrayList<Qualifier>();
+
+    public IntentMap(String defaultProvideIntent, Collection<String> provideIntents) {
+        super();
+        this.defaultProvideIntent = defaultProvideIntent;
+        this.provideIntents.addAll(provideIntents);
+    }
+
+    public Collection<String> getProvideIntents() {
+        return unmodifiableCollection(provideIntents);
+    }
+
+    public void addQualifier(Qualifier qualifier) {
+        qualifiers.add(qualifier);
+    }
+
+    public Collection<Qualifier> getQualifiers() {
+        return unmodifiableCollection(qualifiers);
+    }
+
+    public String getDefaultProvideIntent() {
+        return defaultProvideIntent;
+    }
+
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentMap.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,140 @@
+/*
+ * 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.spi.model;
+
+import java.util.Arrays;
+
+/**
+ * Model class represents a name of a intent. An intent name has a domain name and one or more qualified names. For
+ * example, in "sec.confidentiality/message/body", the domain name is sec, and the qualified names are confidentiality,
+ * message and body
+ */
+@SuppressWarnings({"SerializableHasSerializationMethods"})
+public class IntentName implements java.io.Serializable {
+    private static final String QUALIFIED_SEPARATOR = "/";
+    private static final String DOMAIN_SEPARATOR = ".";
+    private static final long serialVersionUID = -7030021353149084879L;
+
+    /**
+     * domain of the intent
+     */
+    private String domain;
+
+    private String[] qualifiedNames;
+
+    /**
+     * Construct a IntentName from a string representation.
+     *
+     * @param intent string representation for a intent.
+     */
+    public IntentName(String intent) {
+        parse(intent);
+    }
+
+    /**
+     * Construct a IntentName from domain name and qualified names
+     *
+     * @param domain         domain name of the intent
+     * @param qualifiedNames qualified names of the intent
+     */
+    public IntentName(String domain, String[] qualifiedNames) {
+        this.domain = domain;
+        this.qualifiedNames = qualifiedNames;
+    }
+
+    public String getDomain() {
+        return domain;
+    }
+
+    public String[] getQualifiedNames() {
+        String[] results = new String[qualifiedNames.length];
+        System.arraycopy(qualifiedNames, 0, results, 0, qualifiedNames.length);
+        return results;
+    }
+
+    @Override
+    public String toString() {
+        return getName();
+    }
+
+    @Override
+    public boolean equals(Object obj) {
+        if (this == obj) {
+            return true;
+        }
+        if (obj == null) {
+            return false;
+        }
+        if (getClass() != obj.getClass()) {
+            return false;
+        }
+        final IntentName other = (IntentName) obj;
+        if (domain == null) {
+            if (other.domain != null) {
+                return false;
+            }
+        } else if (!domain.equals(other.domain)) {
+            return false;
+        }
+        return Arrays.equals(qualifiedNames, other.qualifiedNames);
+    }
+
+    @Override
+    public int hashCode() {
+        final int PRIME = 17;
+        int result = 1;
+        result = PRIME * result + ((domain == null) ? 0 : domain.hashCode());
+        result = PRIME * result + Arrays.hashCode(qualifiedNames);
+        return result;
+    }
+
+    private String getName() {
+        StringBuilder sbd = new StringBuilder(domain);
+        for (int i = 0; i < qualifiedNames.length; i++) {
+            if (i == 0) {
+                sbd.append(DOMAIN_SEPARATOR);
+            } else {
+                sbd.append(QUALIFIED_SEPARATOR);
+            }
+            sbd.append(qualifiedNames[i]);
+        }
+
+        return sbd.toString();
+    }
+
+    /**
+     * Parse a string representation of intent.
+     *
+     * @param intent string representation of intent
+     */
+    private void parse(String intent) {
+        String iname = validateFormat(intent);
+        int domainIdx = iname.indexOf(DOMAIN_SEPARATOR);
+        domain = iname.substring(0, domainIdx);
+        String qualifNamesStr = iname.substring(domainIdx + 1);
+        qualifiedNames = qualifNamesStr.split(QUALIFIED_SEPARATOR);
+
+    }
+
+    private String validateFormat(String intent) {
+        // TODO validate and canonicalize intent name
+        return intent;
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/IntentName.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,45 @@
+/*
+ * 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.spi.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import static java.util.Collections.unmodifiableCollection;
+
+/**
+ * PolicyModel which contains concrete policy content in form of WSPolicyAttachment or other extensions.
+ */
+public abstract class PolicyContentModel extends PolicyModel {
+    /* WSPolicyAttachment contained in this Model */
+    protected Collection<WSPolicyAttachment> wsPolicyAttachments = new ArrayList<WSPolicyAttachment>();
+    /* Any policy model extensions besides standard intentMap, ws-policyattachment, etc. */
+    protected Collection<PolicyModel> extensions = new ArrayList<PolicyModel>();
+
+    public Collection<PolicyModel> getPolicyExtensions() {
+        return extensions;
+    }
+
+    public Collection<WSPolicyAttachment> getWsPolicyAttachments() {
+        return unmodifiableCollection(wsPolicyAttachments);
+    }
+
+    public void addWsPolicyAttachment(WSPolicyAttachment attachment) {
+        wsPolicyAttachments.add(attachment);
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyContentModel.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,29 @@
+/*
+ * 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.spi.model;
+
+
+/**
+ * An abstract base class for all policy model representations.
+ * <p/>
+ * $Version$ $Date$
+ */
+public abstract class PolicyModel {
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicyModel.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,99 @@
+/*
+ * 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.spi.model;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import static java.util.Collections.unmodifiableCollection;
+import static java.util.Collections.unmodifiableList;
+import java.util.List;
+import javax.xml.namespace.QName;
+
+/**
+ * Model representation for PolicySet.
+ * <p/>
+ * $Rev$ $Date$
+ */
+public class PolicySet extends PolicyContentModel {
+
+    /**
+     * QNames of artifacts to which this Policy can apply
+     */
+    protected List<QName> appliedArtifacts = new ArrayList<QName>();
+
+    /**
+     * IntentMap contained in this PolicySet
+     */
+    private Collection<IntentMap> intentMaps = new ArrayList<IntentMap>();
+
+    /**
+     * Name for PolicySet, corresponding to name attribute of PolicySet element in SCDL
+     */
+    private QName name;
+
+    /**
+     * References to other PolicySet
+     */
+    private Collection<PolicySetReference> policySetReferences = new ArrayList<PolicySetReference>();
+
+    /**
+     * Name of intents provided by this PolicySet
+     */
+    private Collection<IntentName> provideIntents = new ArrayList<IntentName>();
+
+    public PolicySet(QName name, List<IntentName> providesIntent) {
+        super();
+        this.name = name;
+        this.provideIntents.addAll(providesIntent);
+    }
+
+
+    public void addPolicySetReference(PolicySetReference ref) {
+        policySetReferences.add(ref);
+    }
+
+    public void addAppliedArtifacts(QName artifactName) {
+        appliedArtifacts.add(artifactName);
+    }
+
+    public List<QName> getAppliedArtifacts() {
+        return unmodifiableList(appliedArtifacts);
+    }
+
+    public void addIntentMap(IntentMap intentMap) {
+        intentMaps.add(intentMap);
+    }
+
+    public Collection<IntentMap> getIntentMaps() {
+        return unmodifiableCollection(intentMaps);
+    }
+
+    public QName getName() {
+        return name;
+    }
+
+    public Collection<PolicySetReference> getPolicySetReferences() {
+        return unmodifiableCollection(policySetReferences);
+    }
+
+    public Collection<IntentName> getProvideIntents() {
+        return unmodifiableCollection(provideIntents);
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySet.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,38 @@
+/*
+ * 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.spi.model;
+
+import javax.xml.namespace.QName;
+
+/**
+ * Presents a PolicySetReference.
+ */
+public class PolicySetReference extends PolicyModel {
+
+    private QName reference;
+
+    public PolicySetReference(QName reference) {
+        super();
+        this.reference = reference;
+    }
+
+    public QName getReference() {
+        return reference;
+    }
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/PolicySetReference.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,51 @@
+/*
+ * 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.spi.model;
+
+/**
+ * Model reprentation for qualifier
+ */
+
+public class Qualifier extends PolicyContentModel {
+
+    private String name;
+
+    /**
+     * IntentMap contained in this Qualifier
+     */
+    private IntentMap intentMap;
+
+    public Qualifier(String name) {
+        super();
+        this.name = name;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public IntentMap getIntentMap() {
+        return intentMap;
+    }
+
+    public void setIntentMap(IntentMap intentMap) {
+        this.intentMap = intentMap;
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/Qualifier.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java?view=auto&rev=518503
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java Thu Mar 15 00:17:57 2007
@@ -0,0 +1,35 @@
+/*
+ * 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.spi.model;
+
+/*
+ * Presents a ws-policy attachment.
+ */
+public class WSPolicyAttachment<T> extends PolicyModel {
+    private T content;
+
+    public T getContent() {
+        return content;
+    }
+
+    public void setContent(T content) {
+        this.content = content;
+    }
+
+}

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/branches/sca-java-integration/sca/policy/src/main/java/org/apache/tuscany/spi/model/WSPolicyAttachment.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org