You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2004/03/25 23:12:33 UTC

cvs commit: jakarta-commons/jelly/jelly-tags/jaxme/src/test/org/apache/ws/jaxme/examples/misc/address ObjectFactory.java

rdonkin     2004/03/25 14:12:33

  Added:       jelly/jelly-tags/jaxme/src/test/org/apache/ws/jaxme/examples/misc/address
                        ObjectFactory.java
  Log:
  Initial import for jaxme tag library.
  
  Revision  Changes    Path
  1.1                  jakarta-commons/jelly/jelly-tags/jaxme/src/test/org/apache/ws/jaxme/examples/misc/address/ObjectFactory.java
  
  Index: ObjectFactory.java
  ===================================================================
  /**
  * Copyright 2004 The Apache Software Foundation.
  * 
  * Licensed 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.ws.jaxme.examples.misc.address;
  
  public class ObjectFactory {
    private org.apache.ws.jaxme.impl.JAXBContextImpl jaxbContext;
  
    private java.util.Map properties;
  
  
    public ObjectFactory() throws javax.xml.bind.JAXBException {
      jaxbContext = (org.apache.ws.jaxme.impl.JAXBContextImpl) javax.xml.bind.JAXBContext.newInstance("org.apache.ws.jaxme.examples.misc.address");
    }
  
    public java.lang.Object newInstance(java.lang.Class pElementInterface) throws javax.xml.bind.JAXBException {
      return jaxbContext.getElement(pElementInterface);
    }
  
    public java.lang.Object getProperty(java.lang.String pName) {
      if (properties == null) {
        return null;
      }
      return properties.get(pName);
    }
  
    public void setProperty(java.lang.String pName, java.lang.Object pValue) {
      if (properties == null) {
        properties = new java.util.HashMap();
      }
      properties.put(pName, pValue);
    }
  
    public org.apache.ws.jaxme.examples.misc.address.Address createAddress() throws javax.xml.bind.JAXBException {
      return (org.apache.ws.jaxme.examples.misc.address.Address) newInstance(org.apache.ws.jaxme.examples.misc.address.Address.class);
    }
  
    public org.apache.ws.jaxme.examples.misc.address.AddressType createAddressType() throws javax.xml.bind.JAXBException {
      return (org.apache.ws.jaxme.examples.misc.address.AddressType) newInstance(org.apache.ws.jaxme.examples.misc.address.AddressType.class);
    }
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org