juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexo...@apache.org
Subject [07/12] JUDDI-198 adding validation rules for all spec defined tModels
Date Thu, 06 Mar 2014 01:16:21 GMT
http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddi-examples/hello-world-embedded/src/main/resources/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddi-examples/hello-world-embedded/src/main/resources/META-INF/persistence.xml
b/juddi-examples/hello-world-embedded/src/main/resources/META-INF/persistence.xml
index 693c30f..aa08feb 100644
--- a/juddi-examples/hello-world-embedded/src/main/resources/META-INF/persistence.xml
+++ b/juddi-examples/hello-world-embedded/src/main/resources/META-INF/persistence.xml
@@ -70,6 +70,16 @@
     <class>org.apache.juddi.model.TransferTokenKey</class>
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
+		<class>org.apache.juddi.model.ValueSetValues</class>
+
+	<class>org.apache.juddi.model.ChangeRecord</class>
+	<class>org.apache.juddi.model.CommunicationGraph</class>
+	<class>org.apache.juddi.model.Operator</class>
+	<class>org.apache.juddi.model.ReplicationConfiguration</class>
+	<class>org.apache.juddi.model.Edge</class>
+	<class>org.apache.juddi.model.ControlMessage</class>
+	<class>org.apache.juddi.model.ReplicationMessage</class>
+
     
     <properties>
       <property name="hibernate.archive.autodetection" value="class"/>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddi-rest-cxf/src/test/resources/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddi-rest-cxf/src/test/resources/META-INF/persistence.xml b/juddi-rest-cxf/src/test/resources/META-INF/persistence.xml
index 77a7cb8..afb2de7 100644
--- a/juddi-rest-cxf/src/test/resources/META-INF/persistence.xml
+++ b/juddi-rest-cxf/src/test/resources/META-INF/persistence.xml
@@ -71,7 +71,7 @@
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
 	<class>org.apache.juddi.model.ValueSetValues</class>
-	<class>org.apache.juddi.model.ValueSetValue</class>
+
 	<class>org.apache.juddi.model.ChangeRecord</class>
 	<class>org.apache.juddi.model.CommunicationGraph</class>
 	<class>org.apache.juddi.model.Operator</class>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddiv3-war/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddiv3-war/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml
index f378fc5..35d980d 100644
--- a/juddiv3-war/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml
+++ b/juddiv3-war/JPA/Hibernate-JBoss/WEB-INF/classes/META-INF/persistence.xml
@@ -71,7 +71,7 @@
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
 	<class>org.apache.juddi.model.ValueSetValues</class>
-	<class>org.apache.juddi.model.ValueSetValue</class>
+
 	<class>org.apache.juddi.model.ChangeRecord</class>
 	<class>org.apache.juddi.model.CommunicationGraph</class>
 	<class>org.apache.juddi.model.Operator</class>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddiv3-war/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddiv3-war/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml
index 5dae319..24b8a0a 100644
--- a/juddiv3-war/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml
+++ b/juddiv3-war/JPA/Hibernate/WEB-INF/classes/META-INF/persistence.xml
@@ -71,7 +71,7 @@
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
 	<class>org.apache.juddi.model.ValueSetValues</class>
-	<class>org.apache.juddi.model.ValueSetValue</class>
+
 	<class>org.apache.juddi.model.ChangeRecord</class>
 	<class>org.apache.juddi.model.CommunicationGraph</class>
 	<class>org.apache.juddi.model.Operator</class>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddiv3-war/JPA/OpenJPA-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddiv3-war/JPA/OpenJPA-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war/JPA/OpenJPA-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml
index d0ef74c..c3f1d52 100644
--- a/juddiv3-war/JPA/OpenJPA-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml
+++ b/juddiv3-war/JPA/OpenJPA-JBossAS7Up/WEB-INF/classes/META-INF/persistence.xml
@@ -71,7 +71,7 @@
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
 	<class>org.apache.juddi.model.ValueSetValues</class>
-	<class>org.apache.juddi.model.ValueSetValue</class>
+
 	<class>org.apache.juddi.model.ChangeRecord</class>
 	<class>org.apache.juddi.model.CommunicationGraph</class>
 	<class>org.apache.juddi.model.Operator</class>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/juddiv3-war/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/juddiv3-war/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml b/juddiv3-war/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml
index 279fe2f..1faa54a 100644
--- a/juddiv3-war/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml
+++ b/juddiv3-war/JPA/OpenJPA/WEB-INF/classes/META-INF/persistence.xml
@@ -71,7 +71,6 @@
     <class>org.apache.juddi.model.UddiEntity</class>
     <class>org.apache.juddi.model.UddiEntityPublisher</class>
 	<class>org.apache.juddi.model.ValueSetValues</class>
-	<class>org.apache.juddi.model.ValueSetValue</class>
 	<class>org.apache.juddi.model.ChangeRecord</class>
 	<class>org.apache.juddi.model.CommunicationGraph</class>
 	<class>org.apache.juddi.model.Edge</class>

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/uddi-ws/src/main/java/org/apache/juddi/api_v3/ValidValues.java
----------------------------------------------------------------------
diff --git a/uddi-ws/src/main/java/org/apache/juddi/api_v3/ValidValues.java b/uddi-ws/src/main/java/org/apache/juddi/api_v3/ValidValues.java
index 642b3a9..d00f35a 100644
--- a/uddi-ws/src/main/java/org/apache/juddi/api_v3/ValidValues.java
+++ b/uddi-ws/src/main/java/org/apache/juddi/api_v3/ValidValues.java
@@ -1,8 +1,6 @@
 
 package org.apache.juddi.api_v3;
 
-import java.util.ArrayList;
-import java.util.List;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlType;
@@ -19,7 +17,7 @@ import javax.xml.bind.annotation.XmlType;
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  *       &lt;sequence>
  *         &lt;element name="tModekKey" type="{http://www.w3.org/2001/XMLSchema}string"
minOccurs="0"/>
- *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"
minOccurs="0"/>
+ *         &lt;element name="validationClass" type="{http://www.w3.org/2001/XMLSchema}string"
minOccurs="0"/>
  *       &lt;/sequence>
  *     &lt;/restriction>
  *   &lt;/complexContent>
@@ -31,12 +29,12 @@ import javax.xml.bind.annotation.XmlType;
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "validValues", propOrder = {
     "tModekKey",
-    "value"
+    "validationClass"
 })
 public class ValidValues {
 
     protected String tModekKey;
-    protected List<String> value;
+    protected String validationClass;
 
     /**
      * Gets the value of the tModekKey property.
@@ -63,32 +61,27 @@ public class ValidValues {
     }
 
     /**
-     * Gets the value of the value property.
-     * 
-     * <p>
-     * This accessor method returns a reference to the live list,
-     * not a snapshot. Therefore any modification you make to the
-     * returned list will be present inside the JAXB object.
-     * This is why there is not a <CODE>set</CODE> method for the value property.
-     * 
-     * <p>
-     * For example, to add a new item, do as follows:
-     * <pre>
-     *    getValue().add(newItem);
-     * </pre>
-     * 
-     * 
-     * <p>
-     * Objects of the following type(s) are allowed in the list
-     * {@link String }
+     * Gets the value of the validationClass property.
      * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getValidationClass() {
+        return validationClass;
+    }
+
+    /**
+     * Sets the value of the validationClass property.
      * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
      */
-    public List<String> getValue() {
-        if (value == null) {
-            value = new ArrayList<String>();
-        }
-        return this.value;
+    public void setValidationClass(String value) {
+        this.validationClass = value;
     }
 
 }

http://git-wip-us.apache.org/repos/asf/juddi/blob/e78753f1/uddi-ws/src/main/resources/juddi_api_v1.wsdl
----------------------------------------------------------------------
diff --git a/uddi-ws/src/main/resources/juddi_api_v1.wsdl b/uddi-ws/src/main/resources/juddi_api_v1.wsdl
index 6116495..36983d6 100644
--- a/uddi-ws/src/main/resources/juddi_api_v1.wsdl
+++ b/uddi-ws/src/main/resources/juddi_api_v1.wsdl
@@ -241,7 +241,15 @@ xmlns:uddi="urn:uddi-org:api_v3">
     <xs:complexType name="validValues">
     <xs:sequence>
       <xs:element minOccurs="0" name="tModekKey" type="xs:string"/>
-	  <xs:element minOccurs="0" maxOccurs="unbounded" name="value" type="xs:string"/>
+	  <xs:element minOccurs="0" name="validationClass" type="xs:string">
+		<xs:annotation>
+		  <xs:appinfo>Implementation Note</xs:appinfo>
+		  <xs:documentation xml:lang="en">
+		  this represents the class name of the validator for this particular key
+		  </xs:documentation>
+		</xs:annotation>
+
+	  </xs:element>
     </xs:sequence>
   </xs:complexType>
 


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


Mime
View raw message