org.eclipse.higgins.idas.impl
Class BasicValueNormalizedString
java.lang.Object
org.eclipse.higgins.idas.impl.AbstractSimpleValue
org.eclipse.higgins.idas.impl.BasicValueString
org.eclipse.higgins.idas.impl.BasicValueNormalizedString
- All Implemented Interfaces:
- IPropertyValue, ISimpleValue
- Direct Known Subclasses:
- BasicValueToken
public class BasicValueNormalizedString
- extends BasicValueString
- implements ISimpleValue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_TYPE_STR
public static final java.lang.String XML_TYPE_STR
- See Also:
- Constant Field Values
OWL_TYPE_STR
public static final java.lang.String OWL_TYPE_STR
- See Also:
- Constant Field Values
ATTR_VALUE_URI_STR
public static final java.lang.String ATTR_VALUE_URI_STR
- See Also:
- Constant Field Values
ATTR_VALUE_TYPE_URI_STR
public static final java.lang.String ATTR_VALUE_TYPE_URI_STR
- See Also:
- Constant Field Values
BasicValueNormalizedString
public BasicValueNormalizedString(java.lang.String value)
- Constructs using a non-normalized string
- Parameters:
value
- Non-normalized string.
_normalize
protected java.lang.String _normalize(java.lang.String value,
BasicValueNormalizedString.WhiteSpaceRule rule)
- Converts a string to a normalized string.
Converts all tabs, line feeds, and carriage returns to spaces (http://www.w3.org/TR/xmlschema-2/#normalizedString)
Converts occurrence of carriage return + line feed to a single space ( http://www.w3.org/TR/REC-xml/#sec-line-ends)
- Parameters:
value
- String to be normalizedrule
- whiteSpace rule to be followed (http://www.w3.org/TR/xmlschema-2/#rf-whiteSpace)
- Returns:
- the normalized string
getType
public java.net.URI getType()
throws IdASException
- Returns a URI for "http://www.w3.org/2001/XMLSchema#normalizedString"
- Specified by:
getType
in interface IPropertyValue
- Overrides:
getType
in class BasicValueString
- Returns:
- The OWL type for this property's value.
- Throws:
IdASException