Schema

Generated by
LMX (v7.3) on: Sat Dec 08 16:46:37 2018
TargetNamepsace:
Source File: po.xsd

[Top] [Contents] [Back]


Contents

Initial documentation from main schema file

Document Element Choice (Root)

Global Elements

purchaseOrder (PurchaseOrder)
comment (Comment)

Global Types

PurchaseOrderType (PurchaseOrderType)
USAddress (USAddress)
Items (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]


comment

Class name:Comment
Kind:Element
Model:Simple Type
{body} --> xs:string
    const lmx::tlmx_unicode_string & GetComment() const;
    lmx::elmx_error SetComment( const lmx::tlmx_unicode_string & value );
Common Functions
     Comment();
      Comment( const Comment & r_rhs );  // Uses compiler generated default
    Comment &  operator =( const Comment & r_rhs );
    virtual Comment *  clone() const;
    void swap( Comment & r_rhs );
      Comment( lmx::c_xml_reader & r_reader, lmx::elmx_error * p_error );
    // Convenience constructors
      Comment( const char c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Comment( const wchar_t c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
      Comment( const char * p_memory, size_t memory_size, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Comment( const std::string & r_string, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Comment( const lmx::c_any_info & r_any_info, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
    virtual ~Comment();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error Marshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;  // MS Windows Only
    lmx::elmx_error Marshal( std::string * p_string, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( std::ostream & r_sos, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Unmarshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
    lmx::elmx_error Unmarshal( const char * p_memory, size_t memory_size, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const std::string & r_string, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const lmx::c_any_info & r_any_info, lmx::s_debug_error * p_debug_error = LMXNULL );
    // General marshal/unmarshal functions
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "comment" ) const;
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "comment" ) const;
    lmx::elmx_error Unmarshal( lmx::c_xml_reader & r_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "comment" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]


USAddress

Class name:USAddress
Kind:Type
Model:Sequence Complex Content
country --> xs:NMTOKEN[0..1] (Fixed: US)
    const lmx::tlmx_unicode_string & GetCountry() const;
    lmx::elmx_error SetCountry();
    bool IssetCountry() const;
    void UnsetCountry();
name --> xs:string
    const lmx::tlmx_unicode_string & GetName() const;
    lmx::elmx_error SetName( const lmx::tlmx_unicode_string & value );
street --> xs:string
    const lmx::tlmx_unicode_string & GetStreet() const;
    lmx::elmx_error SetStreet( const lmx::tlmx_unicode_string & value );
city --> xs:string
    const lmx::tlmx_unicode_string & GetCity() const;
    lmx::elmx_error SetCity( const lmx::tlmx_unicode_string & value );
state --> xs:string
    const lmx::tlmx_unicode_string & GetState() const;
    lmx::elmx_error SetState( const lmx::tlmx_unicode_string & value );
zip --> xs:decimal
    const lmx::tc_decimal & GetZip() const;
    lmx::tc_decimal & GetZip();
    lmx::elmx_error SetZip( const lmx::tc_decimal & value );
Common Functions
     USAddress();
      USAddress( const USAddress & r_rhs );  // Uses compiler generated default
    USAddress &  operator =( const USAddress & r_rhs );
    virtual USAddress *  clone() const;
    void swap( USAddress & r_rhs );
    virtual ~USAddress();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "USAddress" ) const;  // For advanced use-cases.
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "USAddress" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "USAddress" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]


item

Class name:Item
Kind:Element
Model:Sequence Complex Content
partNum --> xs:string{/\d{3}-[A-Z]{2}/}
    const lmx::tlmx_unicode_string & GetPartNum() const;
    lmx::elmx_error SetPartNum( const lmx::tlmx_unicode_string & value );
productName --> xs:string
    const lmx::tlmx_unicode_string & GetProductName() const;
    lmx::elmx_error SetProductName( const lmx::tlmx_unicode_string & value );
quantity --> xs:positiveInteger{1<=x<100}
    const lmx::tlmx_uns8 & GetQuantity() const;
    lmx::elmx_error SetQuantity( const lmx::tlmx_uns8 & value );
USPrice --> xs:decimal
    const lmx::tc_decimal & GetUSPrice() const;
    lmx::tc_decimal & GetUSPrice();
    lmx::elmx_error SetUSPrice( const lmx::tc_decimal & value );
comment --> xs:string[0..1]
    const lmx::tlmx_unicode_string & GetComment() const;
    lmx::elmx_error SetComment( const lmx::tlmx_unicode_string & value );
    bool IssetComment() const;
    void UnsetComment();
shipDate --> xs:date[0..1]
    const lmx::tc_date & GetShipDate() const;
    lmx::tc_date & GetShipDate();
    lmx::elmx_error SetShipDate( const lmx::tc_date & value );
    bool IssetShipDate() const;
    void UnsetShipDate();
Common Functions
     Item();
      Item( const Item & r_rhs );  // Uses compiler generated default
    Item &  operator =( const Item & r_rhs );
    virtual Item *  clone() const;
    void swap( Item & r_rhs );
    virtual ~Item();
    // General marshal/unmarshal functions
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "item" ) const;
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "item" ) const;
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "item" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]


Items

Class name:Items
Kind:Type
Model:Sequence Complex Content
item --> item[0..*]
    const Items::Item & GetItem( size_t index ) const;// For read access
    lmx::elmx_error AppendItem();// For write access
    lmx::elmx_error AppendItem( Item * p_value );// For write access
    Items::Item & BackItem();// For write access
    lmx::elmx_error InsertItem( size_t index );// For write access
    lmx::elmx_error InsertItem( size_t index, Item * p_value );// For write access
    Items::Item & GetItem( size_t index );// For read/write access
    void DeleteItem( size_t index );
    void ClearItem();// Remove all collection members
    Items::Item & AssignItem( size_t index, const Item & value );// Deep copy
    Items::Item & AssignItem( size_t index, Item * p );
    size_t SizeItem() const;
    TR_const_Item InItem() const;
    TR_Item InItem();
Common Functions
     Items();
      Items( const Items & r_rhs );  // Uses compiler generated default
    Items &  operator =( const Items & r_rhs );
    virtual Items *  clone() const;
    void swap( Items & r_rhs );
    virtual ~Items();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "Items" ) const;  // For advanced use-cases.
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "Items" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "Items" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]


PurchaseOrderType

Class name:PurchaseOrderType
Kind:Type
Model:Sequence Complex Content
orderDate --> xs:date[0..1]
    const lmx::tc_date & GetOrderDate() const;
    lmx::tc_date & GetOrderDate();
    lmx::elmx_error SetOrderDate( const lmx::tc_date & value );
    bool IssetOrderDate() const;
    void UnsetOrderDate();
shipTo --> USAddress
    const USAddress & GetShipTo() const;
    USAddress & GetShipTo();// For read/write access
    USAddress & AssignShipTo( const USAddress & value );// Deep copy
    USAddress & AssignShipTo( USAddress * p );
billTo --> USAddress
    const USAddress & GetBillTo() const;
    USAddress & GetBillTo();// For read/write access
    USAddress & AssignBillTo( const USAddress & value );// Deep copy
    USAddress & AssignBillTo( USAddress * p );
comment --> xs:string[0..1]
    const lmx::tlmx_unicode_string & GetComment() const;
    lmx::elmx_error SetComment( const lmx::tlmx_unicode_string & value );
    bool IssetComment() const;
    void UnsetComment();
items --> Items
    const Items & GetItems() const;
    Items & GetItems();// For read/write access
    Items & AssignItems( const Items & value );// Deep copy
    Items & AssignItems( Items * p );
Common Functions
     PurchaseOrderType();
      PurchaseOrderType( const PurchaseOrderType & r_rhs );  // Uses compiler generated default
    PurchaseOrderType &  operator =( const PurchaseOrderType & r_rhs );
    virtual PurchaseOrderType *  clone() const;
    void swap( PurchaseOrderType & r_rhs );
    virtual ~PurchaseOrderType();
    // General marshal/unmarshal functions
    // Application code should not normally call marshal() and unmarshal() for Types
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "PurchaseOrderType" ) const;  // For advanced use-cases.
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "PurchaseOrderType" ) const;  // For advanced use-cases.
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "PurchaseOrderType" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]


purchaseOrder

Class name:PurchaseOrder
Kind:Element
Derives from:PurchaseOrderType
Common Functions
     PurchaseOrder();
      PurchaseOrder( const PurchaseOrder & r_rhs );
    PurchaseOrder &  operator =( const PurchaseOrder & r_rhs );
    virtual PurchaseOrder * clone() const;
    // In base: void swap( PurchaseOrder & r_rhs );
      PurchaseOrder( lmx::c_xml_reader & r_reader, lmx::elmx_error * p_error );
    // Convenience constructors
      PurchaseOrder( const char c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      PurchaseOrder( const wchar_t c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
      PurchaseOrder( const char * p_memory, size_t memory_size, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      PurchaseOrder( const std::string & r_string, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      PurchaseOrder( const lmx::c_any_info & r_any_info, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
    virtual ~PurchaseOrder();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error Marshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;  // MS Windows Only
    lmx::elmx_error Marshal( std::string * p_string, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( std::ostream & r_sos, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Unmarshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
    lmx::elmx_error Unmarshal( const char * p_memory, size_t memory_size, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const std::string & r_string, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const lmx::c_any_info & r_any_info, lmx::s_debug_error * p_debug_error = LMXNULL );
    // General marshal/unmarshal functions
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "purchaseOrder" ) const;
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "purchaseOrder" ) const;
    lmx::elmx_error Unmarshal( lmx::c_xml_reader & r_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader, const std::string & r_name );  // For advanced use-cases.

[Top] [Contents] [Back]


Document Element Choice: Root

Class name:Root
Kind:Compositor
Model:Choice Complex Content
Common Functions
    Root::Chosen Getchosen() const;
      // Returns the enumeration constant corresponding to the element selected within the xs:choice.
purchaseOrder --> PurchaseOrderType - Getchosen() == Root::PurchaseOrderChosen
    const PurchaseOrderType & GetPurchaseOrder() const;
    PurchaseOrderType & GetPurchaseOrder();// For read/write access
    PurchaseOrderType & AssignPurchaseOrder( const PurchaseOrderType & value );// Deep copy
    PurchaseOrderType & AssignPurchaseOrder( PurchaseOrderType * p );
    void SelectPurchaseOrder();
      // This method is called internally and usually does not need to be called directly.
comment --> xs:string - Getchosen() == Root::CommentChosen
    const lmx::tlmx_unicode_string & GetComment() const;
    lmx::elmx_error SetComment( const lmx::tlmx_unicode_string & value );
    void SelectComment();
      // This method is called internally and usually does not need to be called directly.
Common Functions
     Root();
      Root( const Root & r_rhs );
    Root &  operator =( const Root & r_rhs );
    virtual Root *  clone() const;
    void swap( Root & r_rhs );
      Root( lmx::c_xml_reader & r_reader, lmx::elmx_error * p_error );
    // Convenience constructors
      Root( const char c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Root( const wchar_t c_file_name[], lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
      Root( const char * p_memory, size_t memory_size, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Root( const std::string & r_string, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
      Root( const lmx::c_any_info & r_any_info, lmx::elmx_error * p_error, lmx::s_debug_error * p_debug_error = LMXNULL );
    virtual ~Root();
    // Convenience marshal/unmarshal functions
    lmx::elmx_error Marshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL ) const;  // MS Windows Only
    lmx::elmx_error Marshal( std::string * p_string, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Marshal( std::ostream & r_sos, lmx::s_debug_error * p_debug_error = LMXNULL ) const;
    lmx::elmx_error Unmarshal( const char c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const wchar_t c_file_name[], lmx::s_debug_error * p_debug_error = LMXNULL );  // MS Windows Only
    lmx::elmx_error Unmarshal( const char * p_memory, size_t memory_size, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const std::string & r_string, lmx::s_debug_error * p_debug_error = LMXNULL );
    lmx::elmx_error Unmarshal( const lmx::c_any_info & r_any_info, lmx::s_debug_error * p_debug_error = LMXNULL );
    // General marshal/unmarshal functions
    lmx::elmx_error Marshal( lmx::c_xml_writer & r_writer, const char * p_name = "root" ) const;  // For advanced use-cases.
    lmx::elmx_error marshal( lmx::c_xml_writer & r_writer, const char * p_name = "root" ) const;  // For advanced use-cases.
    lmx::elmx_error Unmarshal( lmx::c_xml_reader & r_reader );
    lmx::elmx_error unmarshal( lmx::c_xml_reader & r_reader );
    void reset();
    bool Check( lmx::c_check_tracker * p_tracker_in = LMXNULL, const char * p_name_in = "root" ) const;
    bool IsOccursOk( lmx::c_check_tracker * p_tracker_in = LMXNULL ) const;

[Top] [Contents] [Back]