Rosetta
Classes | Namespaces | Functions
XMLSchemaGeneration.cc File Reference

Definitions of the classes used to define an XML Schema. More...

#include <utility>
#include <utility/tag/XMLSchemaGeneration.hh>
#include <utility/tag/Tag.hh>
#include <utility/string_util.hh>
#include <utility/xsd_util/util.hh>

Classes

class  utility::tag::XMLSchemaComplexTypeGeneratorImpl
 

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 
 utility::tag
 

Functions

char utility::tag::string_contains_gt_lt_or_ampersand (std::string const &s)
 Check if given string contain any of '<>&' and if so return found character. If no character is found return 0. More...
 
std::string utility::tag::chr_chains_nonrepeated ()
 
std::string utility::tag::name_for_common_type (XMLSchemaCommonType common_type)
 
std::ostream & utility::tag::operator<< (std::ostream &os, XMLSchemaCommonType common_type)
 
void utility::tag::indent_w_spaces (int indentation, std::ostream &os)
 
void utility::tag::write_min_occurs_max_occurs_if_necessary (int min_occurs, int max_occurs, std::ostream &os)
 
std::string utility::tag::real_regex_pattern ()
 
std::string utility::tag::rosetta_bool_string ()
 the set of all strings recognized as booleans according to Rosetta (in utility/string_util.cc) More...
 
std::string utility::tag::rosetta_autobool_string ()
 
std::string utility::tag::chain_cslist_string ()
 
std::string utility::tag::residue_number_string ()
 
std::string utility::tag::residue_number_cslist_string ()
 
std::string utility::tag::refpose_enabled_residue_number_string ()
 
std::string utility::tag::refpose_enabled_residue_number_cslist_string ()
 
std::string utility::tag::canonical_res_char_string ()
 
std::string utility::tag::task_operation_name_pattern ()
 
void utility::tag::activate_common_simple_type (utility::tag::XMLSchemaDefinition &xsd, XMLSchemaCommonType common_type)
 
AttributeList & utility::tag::operator+ (AttributeList &attributes, XMLSchemaAttribute const &attribute_to_append)
 
std::string utility::tag::restriction_type_name (XMLSchemaRestrictionType type)
 
std::ostream & utility::tag::operator<< (std::ostream &os, XMLSchemaRestrictionType type)
 
std::string utility::tag::xs_model_group_name (XMLSchemaModelGroupType xsmgt)
 
std::ostream & utility::tag::operator<< (std::ostream &os, XMLSchemaModelGroupType type)
 
XMLSchemaRestriction utility::tag::integer_range_restriction (std::string const &name, int lower_inclusive, int upper_inclusive)
 Convenience function for defining an inclusive range restriction. More...
 
XMLSchemaAttribute utility::tag::optional_name_attribute (std::string const &description="")
 This function creates an attribute named "name" of type xs_string that is optional; naming is not always required – it is not even mostly required. This is probably the function you need; very few classes actually need to have a name – the name is often only used by the function reading in the name, but there are reasonable times when a Mover, e.g. could go nameless – for instance, in the fixbb_jd3 application, a PackRotamersMover can be given as a subtag of the <Job> tag. In this case, the PackRotamersMover doesn't need to be given a name. More...
 
XMLSchemaAttribute utility::tag::required_name_attribute (std::string const &description="")
 This function creates an attribute named "name" of type xs_string that is required; naming is not always required – it is not even mostly required. This function is probably not what you need. Use with care. See comments for the "optional_name_attribute" function above. More...
 
void utility::tag::append_name_and_attributes_to_complex_type (AttributeList const &attributes, XMLSchemaComplexType &type_definition)
 append an attribute of "name" with type "xs:string" along with the other attributes in the input attribute list to the input complex type. More...
 
void utility::tag::append_required_name_and_attributes_to_complex_type (AttributeList const &attributes, XMLSchemaComplexType &type_definition)
 append a required attribute of "name" with type "xs:string" along with the other attributes in the input attribute list to the input complex type. More...
 
bool utility::tag::attribute_w_name_in_attribute_list (std::string const &attname, AttributeList const &attlist)
 check whether an attribute with name attname already exists in AttributeList attlist to avoid collisions More...
 

Detailed Description

Definitions of the classes used to define an XML Schema.

Author
Andrew Leaver-Fay (aleav.nosp@m.erfa.nosp@m.y@gma.nosp@m.il.c.nosp@m.om)
Vikram K. Mulligan (vmull.nosp@m.ig@u.nosp@m.w.edu) – Added human-readable XML schema output.
Sergey Lyskov, optimization