[jboss-svn-commits] JBoss Portal SVN: r5671 - in trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration: impl policies

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Nov 17 01:36:15 EST 2006


Author: chris.laprun at jboss.com
Date: 2006-11-17 01:36:14 -0500 (Fri, 17 Nov 2006)
New Revision: 5671

Added:
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ProducerRegistrationRequirementsImpl.java
Removed:
   trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java
Log:
Should have been in impl to start with...

Copied: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ProducerRegistrationRequirementsImpl.java (from rev 5670, trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java)
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java	2006-11-17 06:30:31 UTC (rev 5670)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ProducerRegistrationRequirementsImpl.java	2006-11-17 06:36:14 UTC (rev 5671)
@@ -0,0 +1,118 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+
+package org.jboss.portal.wsrp.producer.registration.impl;
+
+import org.jboss.portal.common.util.ParameterValidation;
+import org.jboss.portal.wsrp.producer.registration.api.ProducerRegistrationRequirements;
+import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
+
+import javax.xml.namespace.QName;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ * @since 2.6
+ */
+public class ProducerRegistrationRequirementsImpl implements ProducerRegistrationRequirements
+{
+   private boolean requiresRegistration;
+   private boolean fullServiceDescriptionRequiresRegistration;
+
+   /** property name (QName) -> PropertyDescription */
+   private Map registrationProperties;
+
+   public ProducerRegistrationRequirementsImpl(boolean requiresMarshalling, boolean requiresRegistration, boolean fullServiceDescriptionRequiresRegistration)
+   {
+      this.requiresRegistration = requiresRegistration;
+      this.fullServiceDescriptionRequiresRegistration = fullServiceDescriptionRequiresRegistration;
+      registrationProperties = new HashMap(7);
+   }
+
+   public boolean requiresRegistration()
+   {
+      return requiresRegistration;
+   }
+
+   public void setRequiresRegistration(boolean requiresRegistration)
+   {
+      this.requiresRegistration = requiresRegistration;
+   }
+
+   public boolean fullServiceDescriptionRequiresRegistration()
+   {
+      return fullServiceDescriptionRequiresRegistration;
+   }
+
+   public void setFullServiceDescriptionRequiresRegistration(boolean fullServiceDescriptionRequiresRegistration)
+   {
+      this.fullServiceDescriptionRequiresRegistration = fullServiceDescriptionRequiresRegistration;
+   }
+
+   public Map getRegistrationProperties()
+   {
+      return Collections.unmodifiableMap(registrationProperties);
+   }
+
+   public void addRegistrationProperty(RegistrationPropertyDescription propertyDescription)
+   {
+      ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "PropertyDescription");
+      registrationProperties.put(propertyDescription.getName(), propertyDescription);
+   }
+
+   public boolean acceptValueFor(Object value, QName propertyName)
+   {
+      QName type = getPropertyDescription(propertyName).getType();
+      // todo: decide if type is actually compatible with value...
+      return true;
+   }
+
+   public boolean acceptValueFor(Object value, String propertyName)
+   {
+      return acceptValueFor(value, new QName(propertyName));
+   }
+
+   private RegistrationPropertyDescription getPropertyDescription(QName propertyName)
+   {
+      return (RegistrationPropertyDescription)registrationProperties.get(propertyName);
+   }
+
+   public void removeRegistrationProperty(QName propertyName)
+   {
+      ParameterValidation.throwIllegalArgExceptionIfNull(propertyName, "Property name");
+      registrationProperties.remove(propertyName);
+   }
+
+   public void clearRegistrationProperties()
+   {
+      registrationProperties.clear();
+   }
+
+   public void removeRegistrationProperty(String propertyName)
+   {
+      removeRegistrationProperty(new QName(propertyName));
+   }
+}


Property changes on: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/impl/ProducerRegistrationRequirementsImpl.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Deleted: trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java
===================================================================
--- trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java	2006-11-17 06:30:31 UTC (rev 5670)
+++ trunk/wsrp/src/main/org/jboss/portal/wsrp/producer/registration/policies/ProducerRegistrationRequirementsImpl.java	2006-11-17 06:36:14 UTC (rev 5671)
@@ -1,118 +0,0 @@
-/******************************************************************************
- * JBoss, a division of Red Hat                                               *
- * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
- * contributors as indicated by the @authors tag. See the                     *
- * copyright.txt in the distribution for a full listing of                    *
- * individual contributors.                                                   *
- *                                                                            *
- * This is free software; you can redistribute it and/or modify it            *
- * under the terms of the GNU Lesser General Public License as                *
- * published by the Free Software Foundation; either version 2.1 of           *
- * the License, or (at your option) any later version.                        *
- *                                                                            *
- * This software is distributed in the hope that it will be useful,           *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
- * Lesser General Public License for more details.                            *
- *                                                                            *
- * You should have received a copy of the GNU Lesser General Public           *
- * License along with this software; if not, write to the Free                *
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
- ******************************************************************************/
-
-package org.jboss.portal.wsrp.producer.registration.policies;
-
-import org.jboss.portal.common.util.ParameterValidation;
-import org.jboss.portal.wsrp.producer.registration.api.ProducerRegistrationRequirements;
-import org.jboss.portal.wsrp.producer.registration.api.RegistrationPropertyDescription;
-
-import javax.xml.namespace.QName;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision$
- * @since 2.6
- */
-public class ProducerRegistrationRequirementsImpl implements ProducerRegistrationRequirements
-{
-   private boolean requiresRegistration;
-   private boolean fullServiceDescriptionRequiresRegistration;
-
-   /** property name (QName) -> PropertyDescription */
-   private Map registrationProperties;
-
-   public ProducerRegistrationRequirementsImpl(boolean requiresMarshalling, boolean requiresRegistration, boolean fullServiceDescriptionRequiresRegistration)
-   {
-      this.requiresRegistration = requiresRegistration;
-      this.fullServiceDescriptionRequiresRegistration = fullServiceDescriptionRequiresRegistration;
-      registrationProperties = new HashMap(7);
-   }
-
-   public boolean requiresRegistration()
-   {
-      return requiresRegistration;
-   }
-
-   public void setRequiresRegistration(boolean requiresRegistration)
-   {
-      this.requiresRegistration = requiresRegistration;
-   }
-
-   public boolean fullServiceDescriptionRequiresRegistration()
-   {
-      return fullServiceDescriptionRequiresRegistration;
-   }
-
-   public void setFullServiceDescriptionRequiresRegistration(boolean fullServiceDescriptionRequiresRegistration)
-   {
-      this.fullServiceDescriptionRequiresRegistration = fullServiceDescriptionRequiresRegistration;
-   }
-
-   public Map getRegistrationProperties()
-   {
-      return Collections.unmodifiableMap(registrationProperties);
-   }
-
-   public void addRegistrationProperty(RegistrationPropertyDescription propertyDescription)
-   {
-      ParameterValidation.throwIllegalArgExceptionIfNull(propertyDescription, "PropertyDescription");
-      registrationProperties.put(propertyDescription.getName(), propertyDescription);
-   }
-
-   public boolean acceptValueFor(Object value, QName propertyName)
-   {
-      QName type = getPropertyDescription(propertyName).getType();
-      // todo: decide if type is actually compatible with value...
-      return true;
-   }
-
-   public boolean acceptValueFor(Object value, String propertyName)
-   {
-      return acceptValueFor(value, new QName(propertyName));
-   }
-
-   private RegistrationPropertyDescription getPropertyDescription(QName propertyName)
-   {
-      return (RegistrationPropertyDescription)registrationProperties.get(propertyName);
-   }
-
-   public void removeRegistrationProperty(QName propertyName)
-   {
-      ParameterValidation.throwIllegalArgExceptionIfNull(propertyName, "Property name");
-      registrationProperties.remove(propertyName);
-   }
-
-   public void clearRegistrationProperties()
-   {
-      registrationProperties.clear();
-   }
-
-   public void removeRegistrationProperty(String propertyName)
-   {
-      removeRegistrationProperty(new QName(propertyName));
-   }
-}




More information about the jboss-svn-commits mailing list