Schema

Generated by
LMX (v3.7) on: Thu Jan 10 11:53:20 2008
TargetNamepsace:
Source File: po.xsd

[Top] [Contents] [Back]


Contents

Initial documentation from main schema file

Document Element Choice (c_root)

Global Elements

purchaseOrder (c_purchaseOrder)
comment (c_comment)

Global Types

PurchaseOrderType (c_PurchaseOrderType)
USAddress (c_USAddress)
Items (c_Items)

Global Groups

None

[Top] [Contents] [Back]


Initial documentation from main schema file


Purchase order schema for Example.com.
Copyright 2000 Example.com. All rights reserved.

[Top] [Contents] [Back]


Document Element Choice: root

Class name:c_root
Kind:Compositor
Model:Choice Complex Content
Common Functions
    c_root::elmx_chosen getchosen() const;
      // Returns the enumeration constant correspnding to the element selected within the xs:choice.
purchaseOrder --> PurchaseOrderType - getchosen() == c_root::e_purchaseOrder
    const c_PurchaseOrderType & get_purchaseOrder () const;
    c_PurchaseOrderType & get_purchaseOrder ();// For read/write access
    c_PurchaseOrderType & assign_purchaseOrder ( const c_PurchaseOrderType & a );// Deep copy
comment --> xs:string - getchosen() == c_root::e_comment
    const lmx::tlmx_unicode_string & get_comment () const;
    lmx::elmx_error set_comment ( const lmx::tlmx_unicode_string & a );
Common Functions
     c_root();
      c_root( const c_root &ar_rhs );
    c_root &  operator =( const c_root &ar_rhs );
    void swap( c_root &ar_rhs );
    // Convenience constructors
      c_root( const char ac_file_name[], lmx::elmx_error *ap_error );
      c_root( const char *ap_memory, size_t a_memory_size, lmx::elmx_error *ap_error );
      c_root( const std::string &ar_string, lmx::elmx_error *ap_error );
    virtual ~c_root();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error marshal( const char ac_file_name[] ) const;
    lmx::elmx_error marshal( std::string *ap_string ) const;
    lmx::elmx_error marshal( std::ostream &ar_sos ) const;
    lmx::elmx_error unmarshal( const char ac_file_name[] );
    lmx::elmx_error unmarshal( const char *ap_memory, size_t a_memory_size );
    lmx::elmx_error unmarshal( const std::string &ar_string );
    // General marshal/unmarshal functions
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "root" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader );
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]


purchaseOrder

Class name:c_purchaseOrder
Kind:Element
Derives from:c_PurchaseOrderType
Common Functions
     c_purchaseOrder();
      c_purchaseOrder( const c_purchaseOrder &ar_rhs );
    // In base: c_purchaseOrder &  operator =( const c_purchaseOrder &ar_rhs );
    // In base: void swap( c_purchaseOrder &ar_rhs );
    // Convenience constructors
      c_purchaseOrder( const char ac_file_name[], lmx::elmx_error *ap_error );
      c_purchaseOrder( const char *ap_memory, size_t a_memory_size, lmx::elmx_error *ap_error );
      c_purchaseOrder( const std::string &ar_string, lmx::elmx_error *ap_error );
    virtual ~c_purchaseOrder();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error marshal( const char ac_file_name[] ) const;
    lmx::elmx_error marshal( std::string *ap_string ) const;
    lmx::elmx_error marshal( std::ostream &ar_sos ) const;
    lmx::elmx_error unmarshal( const char ac_file_name[] );
    lmx::elmx_error unmarshal( const char *ap_memory, size_t a_memory_size );
    lmx::elmx_error unmarshal( const std::string &ar_string );
    // General marshal/unmarshal functions
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "purchaseOrder" ) const;
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.

[Top] [Contents] [Back]


comment

Class name:c_comment
Kind:Element
Model:Simple Type
{body} --> xs:string
    const lmx::tlmx_unicode_string & get_comment () const;
    lmx::elmx_error set_comment ( const lmx::tlmx_unicode_string & a );
Common Functions
     c_comment();
      c_comment( const c_comment &ar_rhs );
    c_comment &  operator =( const c_comment &ar_rhs );
    void swap( c_comment &ar_rhs );
    // Convenience constructors
      c_comment( const char ac_file_name[], lmx::elmx_error *ap_error );
      c_comment( const char *ap_memory, size_t a_memory_size, lmx::elmx_error *ap_error );
      c_comment( const std::string &ar_string, lmx::elmx_error *ap_error );
    virtual ~c_comment();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error marshal( const char ac_file_name[] ) const;
    lmx::elmx_error marshal( std::string *ap_string ) const;
    lmx::elmx_error marshal( std::ostream &ar_sos ) const;
    lmx::elmx_error unmarshal( const char ac_file_name[] );
    lmx::elmx_error unmarshal( const char *ap_memory, size_t a_memory_size );
    lmx::elmx_error unmarshal( const std::string &ar_string );
    // General marshal/unmarshal functions
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "comment" ) const;
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]


PurchaseOrderType

Class name:c_PurchaseOrderType
Kind:Type
Model:Sequence Complex Content
orderDate --> xs:date[0..1]
    const lmx::tc_date & get_orderDate () const;
    lmx::elmx_error set_orderDate ( const lmx::tc_date & a );
    bool isset_orderDate() const;
    void unset_orderDate();
shipTo --> USAddress
    const c_USAddress & get_shipTo () const;
    c_USAddress & get_shipTo ();// For read/write access
    c_USAddress & assign_shipTo ( const c_USAddress & a );// Deep copy
billTo --> USAddress
    const c_USAddress & get_billTo () const;
    c_USAddress & get_billTo ();// For read/write access
    c_USAddress & assign_billTo ( const c_USAddress & a );// Deep copy
comment --> xs:string[0..1]
    const lmx::tlmx_unicode_string & get_comment () const;
    lmx::elmx_error set_comment ( const lmx::tlmx_unicode_string & a );
    bool isset_comment() const;
    void unset_comment();
items --> Items
    const c_Items & get_items () const;
    c_Items & get_items ();// For read/write access
    c_Items & assign_items ( const c_Items & a );// Deep copy
Common Functions
     c_PurchaseOrderType();
      c_PurchaseOrderType( const c_PurchaseOrderType &ar_rhs );
    c_PurchaseOrderType &  operator =( const c_PurchaseOrderType &ar_rhs );
    void swap( c_PurchaseOrderType &ar_rhs );
    virtual ~c_PurchaseOrderType();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "PurchaseOrderType" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]


USAddress

Class name:c_USAddress
Kind:Type
Model:Sequence Complex Content
country --> xs:NMTOKEN[0..1] (Fixed: US)
    const lmx::tlmx_unicode_string & get_country () const;
    lmx::elmx_error set_country ();
    bool isset_country() const;
    void unset_country();
name --> xs:string
    const lmx::tlmx_unicode_string & get_name () const;
    lmx::elmx_error set_name ( const lmx::tlmx_unicode_string & a );
street --> xs:string
    const lmx::tlmx_unicode_string & get_street () const;
    lmx::elmx_error set_street ( const lmx::tlmx_unicode_string & a );
city --> xs:string
    const lmx::tlmx_unicode_string & get_city () const;
    lmx::elmx_error set_city ( const lmx::tlmx_unicode_string & a );
state --> xs:string
    const lmx::tlmx_unicode_string & get_state () const;
    lmx::elmx_error set_state ( const lmx::tlmx_unicode_string & a );
zip --> xs:decimal
    const lmx::tc_decimal & get_zip () const;
    lmx::elmx_error set_zip ( const lmx::tc_decimal & a );
Common Functions
     c_USAddress();
      c_USAddress( const c_USAddress &ar_rhs );
    c_USAddress &  operator =( const c_USAddress &ar_rhs );
    void swap( c_USAddress &ar_rhs );
    virtual ~c_USAddress();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "USAddress" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]


Items

Class name:c_Items
Kind:Type
Model:Sequence Complex Content
item --> item[0..*]
    const c_Items::c_item & get_item( size_t a_index ) const;// For read access
    lmx::elmx_error append_item();// For write access
    c_Items::c_item & back_item();// For write access
    lmx::elmx_error insert_item( size_t a_index );// For write access
    c_Items::c_item & get_item( size_t a_index );// For read/write access
    void delete_item( size_t a_index );
    void clear_item();// Remove all collection members
    c_Items::c_item & assign_item( size_t a_index, const c_item & a );// Deep copy
    size_t size_item() const;
Common Functions
     c_Items();
      c_Items( const c_Items &ar_rhs );
    c_Items &  operator =( const c_Items &ar_rhs );
    void swap( c_Items &ar_rhs );
    virtual ~c_Items();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "Items" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]


item

Class name:c_item
Kind:Element
Model:Sequence Complex Content
partNum --> xs:string{/\d{3}-[A-Z]{2}/}
    const lmx::tlmx_unicode_string & get_partNum () const;
    lmx::elmx_error set_partNum ( const lmx::tlmx_unicode_string & a );
productName --> xs:string
    const lmx::tlmx_unicode_string & get_productName () const;
    lmx::elmx_error set_productName ( const lmx::tlmx_unicode_string & a );
quantity --> xs:positiveInteger{1<=x<100}
    lmx::tlmx_uns8 get_quantity () const;
    lmx::elmx_error set_quantity ( lmx::tlmx_uns8 a );
USPrice --> xs:decimal
    const lmx::tc_decimal & get_USPrice () const;
    lmx::elmx_error set_USPrice ( const lmx::tc_decimal & a );
comment --> xs:string[0..1]
    const lmx::tlmx_unicode_string & get_comment () const;
    lmx::elmx_error set_comment ( const lmx::tlmx_unicode_string & a );
    bool isset_comment() const;
    void unset_comment();
shipDate --> xs:date[0..1]
    const lmx::tc_date & get_shipDate () const;
    lmx::elmx_error set_shipDate ( const lmx::tc_date & a );
    bool isset_shipDate() const;
    void unset_shipDate();
Common Functions
     c_item();
      c_item( const c_item &ar_rhs );
    c_item &  operator =( const c_item &ar_rhs );
    void swap( c_item &ar_rhs );
    virtual ~c_item();
    // General marshal/unmarshal functions
    lmx::elmx_error marshal( lmx::c_xml_writer &ar_writer, const char *ap_name = "item" ) const;
    lmx::elmx_error unmarshal( lmx::c_xml_reader &ar_reader, const std::string &ar_name );  // For advanced use-cases.
    void reset();
    bool is_occurs_ok() const;

[Top] [Contents] [Back]