org.eclipse.higgins.idas.impl
Class BasicValueNormalizedString

java.lang.Object
  extended by org.eclipse.higgins.idas.impl.AbstractSimpleValue
      extended by org.eclipse.higgins.idas.impl.BasicValueString
          extended by org.eclipse.higgins.idas.impl.BasicValueNormalizedString
All Implemented Interfaces:
IPropertyValue, ISimpleValue
Direct Known Subclasses:
BasicValueToken

public class BasicValueNormalizedString
extends BasicValueString
implements ISimpleValue


Nested Class Summary
protected static class BasicValueNormalizedString.WhiteSpaceRule
           
 
Field Summary
static java.lang.String ATTR_VALUE_TYPE_URI_STR
           
static java.lang.String ATTR_VALUE_URI_STR
           
static java.lang.String OWL_TYPE_STR
           
static java.lang.String XML_TYPE_STR
           
 
Fields inherited from class org.eclipse.higgins.idas.impl.BasicValueString
_value
 
Fields inherited from class org.eclipse.higgins.idas.impl.AbstractSimpleValue
OWL_TYPE_SUFFIX
 
Fields inherited from interface org.eclipse.higgins.idas.ISimpleValue
BASE_XML_SCHEMA_URI
 
Fields inherited from interface org.eclipse.higgins.idas.IPropertyValue
BASE_OWL_URI
 
Constructor Summary
BasicValueNormalizedString(java.lang.String value)
          Constructs using a non-normalized string
 
Method Summary
protected  java.lang.String _normalize(java.lang.String value, BasicValueNormalizedString.WhiteSpaceRule rule)
          Converts a string to a normalized string.
 java.net.URI getType()
          Returns a URI for "http://www.w3.org/2001/XMLSchema#normalizedString"
 
Methods inherited from class org.eclipse.higgins.idas.impl.BasicValueString
_setValue, getData
 
Methods inherited from class org.eclipse.higgins.idas.impl.AbstractSimpleValue
getCanonical, getLexical, isSimple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.idas.ISimpleValue
getCanonical, getData, getLexical
 
Methods inherited from interface org.eclipse.higgins.idas.IPropertyValue
isSimple
 

Field Detail

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
Constructor Detail

BasicValueNormalizedString

public BasicValueNormalizedString(java.lang.String value)
Constructs using a non-normalized string

Parameters:
value - Non-normalized string.
Method Detail

_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 normalized
rule - 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