/* * This class was automatically generated with * Castor 1.1.2.1, using an XML * Schema. * $Id$ */ package com.dnb.IDP.Contact.Intl.Vers1; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * Class ContactInformation. * * @version $Revision$ $Date$ */ public class ContactInformation implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _id. */ private java.lang.String _id; /** * Field _businessName. */ private BusinessName _businessName; /** * Field _tradeStyle. */ private TradeStyle _tradeStyle; /** * Field _businessNames. */ private BusinessNames _businessNames; /** * Field _addressDetails. */ private com.dnb.IDP.Contact.Intl.Vers1.AddressDetails _addressDetails; /** * Field _businessAddress. */ private BusinessAddress _businessAddress; /** * Field _websiteURL. */ private WebsiteURL _websiteURL; //----------------/ //- Constructors -/ //----------------/ public ContactInformation() { super(); } //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'addressDetails'. * * @return the value of field 'AddressDetails'. */ public com.dnb.IDP.Contact.Intl.Vers1.AddressDetails getAddressDetails( ) { return this._addressDetails; } /** * Returns the value of field 'businessAddress'. * * @return the value of field 'BusinessAddress'. */ public BusinessAddress getBusinessAddress( ) { return this._businessAddress; } /** * Returns the value of field 'businessName'. * * @return the value of field 'BusinessName'. */ public BusinessName getBusinessName( ) { return this._businessName; } /** * Returns the value of field 'businessNames'. * * @return the value of field 'BusinessNames'. */ public BusinessNames getBusinessNames( ) { return this._businessNames; } /** * Returns the value of field 'id'. * * @return the value of field 'Id'. */ public java.lang.String getId( ) { return this._id; } /** * Returns the value of field 'tradeStyle'. * * @return the value of field 'TradeStyle'. */ public TradeStyle getTradeStyle( ) { return this._tradeStyle; } /** * Returns the value of field 'websiteURL'. * * @return the value of field 'WebsiteURL'. */ public WebsiteURL getWebsiteURL( ) { return this._websiteURL; } /** * Method isValid. * * @return true if this object is valid according to the schema */ public boolean isValid( ) { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } /** * * * @param out * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void marshal( final java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } /** * * * @param handler * @throws java.io.IOException if an IOException occurs during * marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling */ public void marshal( final org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } /** * Sets the value of field 'addressDetails'. * * @param addressDetails the value of field 'addressDetails'. */ public void setAddressDetails( final com.dnb.IDP.Contact.Intl.Vers1.AddressDetails addressDetails) { this._addressDetails = addressDetails; } /** * Sets the value of field 'businessAddress'. * * @param businessAddress the value of field 'businessAddress'. */ public void setBusinessAddress( final BusinessAddress businessAddress) { this._businessAddress = businessAddress; } /** * Sets the value of field 'businessName'. * * @param businessName the value of field 'businessName'. */ public void setBusinessName( final BusinessName businessName) { this._businessName = businessName; } /** * Sets the value of field 'businessNames'. * * @param businessNames the value of field 'businessNames'. */ public void setBusinessNames( final BusinessNames businessNames) { this._businessNames = businessNames; } /** * Sets the value of field 'id'. * * @param id the value of field 'id'. */ public void setId( final java.lang.String id) { this._id = id; } /** * Sets the value of field 'tradeStyle'. * * @param tradeStyle the value of field 'tradeStyle'. */ public void setTradeStyle( final TradeStyle tradeStyle) { this._tradeStyle = tradeStyle; } /** * Sets the value of field 'websiteURL'. * * @param websiteURL the value of field 'websiteURL'. */ public void setWebsiteURL( final WebsiteURL websiteURL) { this._websiteURL = websiteURL; } /** * Method unmarshal. * * @param reader * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @return the unmarshaled * com.dnb.IDP.Contact.Intl.Vers1.ContactInformation */ public static com.dnb.IDP.Contact.Intl.Vers1.ContactInformation unmarshal( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.dnb.IDP.Contact.Intl.Vers1.ContactInformation) Unmarshaller.unmarshal(com.dnb.IDP.Contact.Intl.Vers1.ContactInformation.class, reader); } /** * * * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void validate( ) throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } }