Class sap.ui.model.type.StringModule: sap/ui/model/type/String
extends SimpleType
This class represents string simple types.
Constructor Summary
Method Summary
sap.ui.model.type.String.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.type.String with name 
sClassName and enriches it with the information contained in oClassInfo.Methods borrowed from class sap.ui.model.SimpleType
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
 Constructor Detail 
 new sap.ui.model.type.String(oFormatOptions?, oConstraints?) 
 Constructor for a String type. 
Parameters:
| {object} | oFormatOptions? | formatting options. String doesn't support any formatting options | 
| {object} | oConstraints? | value constraints. All given constraints must be fulfilled by a value to be valid | 
| {int} | oConstraints.maxLength? | maximum length (in characters) that a string of this value may have | 
| {int} | oConstraints.minLength? | minimum length (in characters) that a string of this value may have | 
| {string} | oConstraints.startsWith? | a prefix that any valid value must start with | 
| {string} | oConstraints.startsWithIgnoreCase? | a prefix that any valid value must start with, ignoring case | 
| {string} | oConstraints.endsWith? | a suffix that any valid value must end with | 
| {string} | oConstraints.endsWithIgnoreCase? | a suffix that any valid value must end with, ignoring case | 
| {string} | oConstraints.contains? | an infix that must be contained in any valid value | 
| {string} | oConstraints.equals? | only value that is allowed | 
| {RegExp} | oConstraints.search? | a regular expression that the value must match | 
 Method Detail 
 sap.ui.model.type.String.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.ui.model.type.String with name 
sClassName and enriches it with the information contained in oClassInfo. oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend. 
Parameters:
| {string} | sClassName | Name of the class being created | 
| {object} | oClassInfo? | Object literal with information about the class | 
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata | 
Returns:
| {function} | Created class / constructor function | 
 sap.ui.model.type.String.getMetadata(): sap.ui.base.Metadata
 Returns a metadata object for class sap.ui.model.type.String. 
Returns:
| {sap.ui.base.Metadata} | Metadata object describing this class |