fi.hut.tml.xsmiles.mlfc.xforms.instance.XercesPSVI
Class PSVIXsiTypeImpl

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.instance.XercesPSVI.PSVIXsiTypeImpl
All Implemented Interfaces:
XsiType

public class PSVIXsiTypeImpl
extends java.lang.Object
implements XsiType

This class contains the PSVI related functions. The idea is to separate them as much as possible to a single class. Note that the underlying DOM has to support PSVI


Field Summary
protected  org.apache.xerces.impl.dv.XSSimpleType simpleType
           
 
Constructor Summary
PSVIXsiTypeImpl(java.lang.String namespace, java.lang.String type, SchemaPool schemaPool)
           
 
Method Summary
protected  java.lang.String getLocalname(java.lang.String tagname)
           
 int getPrimitiveTypeId()
          This method digs the underlying primitive type, no matter if the type is defined as a restriction to a complex type or just as type="xs:xxx"
 java.lang.Object validateElement(InstanceNode elem)
           
 java.lang.Object validateString(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

simpleType

protected org.apache.xerces.impl.dv.XSSimpleType simpleType
Constructor Detail

PSVIXsiTypeImpl

public PSVIXsiTypeImpl(java.lang.String namespace,
                       java.lang.String type,
                       SchemaPool schemaPool)
Method Detail

getLocalname

protected java.lang.String getLocalname(java.lang.String tagname)

getPrimitiveTypeId

public int getPrimitiveTypeId()
This method digs the underlying primitive type, no matter if the type is defined as a restriction to a complex type or just as type="xs:xxx"

Specified by:
getPrimitiveTypeId in interface XsiType

validateString

public java.lang.Object validateString(java.lang.String s)
                                throws org.apache.xerces.impl.dv.InvalidDatatypeValueException
Specified by:
validateString in interface XsiType
Throws:
org.apache.xerces.impl.dv.InvalidDatatypeValueException

validateElement

public java.lang.Object validateElement(InstanceNode elem)
                                 throws org.apache.xerces.impl.dv.InvalidDatatypeValueException
Throws:
org.apache.xerces.impl.dv.InvalidDatatypeValueException


X-Smiles 1.2