View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/jaxr/src/com/sun/xml/registry/ebxml/infomodel/EmailAddressImpl.java,v 1.7 2003/07/18 15:18:07 farrukh_najmi Exp $ 3 * 4 * 5 */ 6 7 package com.sun.xml.registry.ebxml.infomodel; 8 9 import javax.xml.registry.*; 10 import javax.xml.registry.infomodel.*; 11 import com.sun.xml.registry.ebxml.LifeCycleManagerImpl; 12 13 import org.oasis.ebxml.registry.bindings.rim.EmailAddressType; 14 15 /*** 16 * Class Declaration for Class1 17 * @author <a href="mailto:Farrukh.Najmi@Sun.COM">Farrukh S. Najmi</a> 18 */ 19 public class EmailAddressImpl implements EmailAddress { 20 21 private String address = null; 22 private String type = null; 23 24 private EmailAddressImpl() { 25 } 26 27 public EmailAddressImpl(LifeCycleManagerImpl lcm) { 28 } 29 30 public EmailAddressImpl(LifeCycleManagerImpl lcm, EmailAddressType ebEmail) throws JAXRException { 31 address = ebEmail.getAddress(); 32 type = ebEmail.getType(); 33 } 34 35 public String getAddress() throws JAXRException { 36 return address; 37 } 38 39 public void setAddress(String par1) throws JAXRException { 40 address = par1; 41 } 42 43 public String getType() throws JAXRException { 44 return type; 45 } 46 47 public void setType(String par1) throws JAXRException { 48 type = par1; 49 } 50 51 /*** 52 * This method takes this JAXR infomodel object and returns an 53 * equivalent binding object for it. Note it does the reverse of one 54 * of the constructors above. 55 */ 56 public org.oasis.ebxml.registry.bindings.rim.EmailAddress toBindingObject() throws JAXRException { 57 org.oasis.ebxml.registry.bindings.rim.EmailAddress ebOrg = 58 new org.oasis.ebxml.registry.bindings.rim.EmailAddress(); 59 60 setBindingObject(ebOrg); 61 62 return ebOrg; 63 } 64 65 protected void setBindingObject(org.oasis.ebxml.registry.bindings.rim.EmailAddressType ebEmailAddress) throws JAXRException { 66 67 ebEmailAddress.setType(getType()); 68 ebEmailAddress.setAddress(getAddress()); 69 } 70 }

This page was automatically generated by Maven