|
libSBOL
2.3.3
|
A URIProperty may contain a restricted type of string that conforms to the specification for a Uniform Resource Identifier (URI), typically consisting of a namespace authority followed by an identifier.
A URIProperty often contains a reference to an SBOL object or may contain an ontology term.
Public Member Functions | |
| URIProperty (void *property_owner, rdf_type type_uri, char lower_bound, char upper_bound, ValidationRules validation_rules, std::string initial_value) | |
| Initialize the property with a value that is passed through a constructor for the parent SBOLObject. More... | |
| URIProperty (void *property_owner, rdf_type type_uri, char lower_bound, char upper_bound, ValidationRules validation_rules) | |
| Initialize a Property without a value. More... | |
| virtual std::string | get () |
| Get first URI. More... | |
| virtual void | set (std::string new_value) |
| Basic setter for SBOL TextProperty and URIProperty. More... | |
| virtual void | set (int new_value) |
| Basic setter for SBOL IntProperty, but can be used with TextProperty as well. More... | |
| virtual void | set (double new_value) |
| Basic setter for SBOL IntProperty, but can be used with TextProperty as well. More... | |
| void | add (std::string new_value) |
| Appends the new value to a list of values, for properties that allow it. More... | |
| virtual void | remove (int index=0) |
| Remove a property value. | |
| virtual void | clear () |
| Clear all property values. | |
| virtual bool | find (std::string query) |
| Check if a value in this property matches the query. | |
| std::string | operator[] (const int nIndex) |
| Retrieve the indexed value in a list container. More... | |
| void | copy (Property< std::string > &target_property) |
| Copy property values to a target object's property fields. | |
| URIProperty | ( | void * | property_owner, |
| rdf_type | type_uri, | ||
| char | lower_bound, | ||
| char | upper_bound, | ||
| ValidationRules | validation_rules, | ||
| std::string | initial_value | ||
| ) |
Initialize the property with a value that is passed through a constructor for the parent SBOLObject.
Validation rules are checked upon initialization.
| type_uri | An RDF type for the property which determines how the property is serialized in SBOL files |
| lower_bound | A char flag (typically '0' or '1') indicating the minimum number of values allowed for this property |
| upper_bound | A char flag (typically '1' or '*') indicating the maximum number of values allowed for this property |
| validation_rules | A vector of pointers to the validation functions |
| URIProperty | ( | void * | property_owner, |
| rdf_type | type_uri, | ||
| char | lower_bound, | ||
| char | upper_bound, | ||
| ValidationRules | validation_rules | ||
| ) |
Initialize a Property without a value.
No validation rules are run upon initialization.
| type_uri | An RDF type for the property which determines how the property is serialized in SBOL files |
| lower_bound | A char flag (typically '0' or '1') indicating the minimum number of values allowed for this property |
| upper_bound | A char flag (typically '1' or '*') indicating the maximum number of values allowed for this property |
| validation_rules | A vector of pointers to the validation functions |
|
inherited |
Appends the new value to a list of values, for properties that allow it.
| new_value | A new string which will be added to a list of values. |
|
virtual |
Get first URI.
|
inherited |
Retrieve the indexed value in a list container.
| nIndex | A numerical index |
|
virtualinherited |
Basic setter for SBOL TextProperty and URIProperty.
| new_value | A new string value for the Property. |
Reimplemented in ReferencedObject.
|
virtualinherited |
Basic setter for SBOL IntProperty, but can be used with TextProperty as well.
| new_value | A new integer value for the property, which is converted to a raw string during serialization. |
|
virtualinherited |
Basic setter for SBOL IntProperty, but can be used with TextProperty as well.
| new_value | A new integer value for the property, which is converted to a raw string during serialization. |

1.8.14