Rosetta
2019.07
|
This abstract class is meant to represent either an XMLSChemaElement or an XMLSchemaModelGroup so that the interchangable set of these objects in a ModelGroup can be represented. I may be misusing the term "particle" in the way that it is meant within XML Schema – so the mapping of this term to the term used in XML Schema is probably imperfect. More...
#include <XMLSchemaGeneration.hh>
Public Member Functions | |
XMLSchemaParticle () | |
~XMLSchemaParticle () override | |
XMLSchemaParticle & | min_occurs (int setting) |
XMLSchemaParticle & | max_occurs (int setting) |
int | min_occurs () const |
int | max_occurs () const |
Public Member Functions inherited from utility::tag::XMLSchemaTopLevelElement | |
virtual std::string const & | element_name () const =0 |
virtual void | write_definition (int indentation, std::ostream &os) const =0 |
virtual void | prepare_for_output (XMLSchemaDefinition &xsd) const =0 |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
ReferenceCount () | |
Default constructor. More... | |
virtual | ~ReferenceCount () |
Private Attributes | |
int | min_occurs_ |
int | max_occurs_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
This abstract class is meant to represent either an XMLSChemaElement or an XMLSchemaModelGroup so that the interchangable set of these objects in a ModelGroup can be represented. I may be misusing the term "particle" in the way that it is meant within XML Schema – so the mapping of this term to the term used in XML Schema is probably imperfect.
utility::tag::XMLSchemaParticle::XMLSchemaParticle | ( | ) |
|
overridedefault |
XMLSchemaParticle & utility::tag::XMLSchemaParticle::max_occurs | ( | int | setting | ) |
References max_occurs_.
int utility::tag::XMLSchemaParticle::max_occurs | ( | ) | const |
References max_occurs_.
Referenced by utility::tag::XMLSchemaModelGroup::write_definition(), and utility::tag::XMLSchemaElement::write_definition().
XMLSchemaParticle & utility::tag::XMLSchemaParticle::min_occurs | ( | int | setting | ) |
References min_occurs_.
int utility::tag::XMLSchemaParticle::min_occurs | ( | ) | const |
References min_occurs_.
Referenced by utility::tag::XMLSchemaModelGroup::write_definition(), and utility::tag::XMLSchemaElement::write_definition().
|
private |
Referenced by max_occurs().
|
private |
Referenced by min_occurs().