com.espertech.esper.event.xml
Class SchemaElementSimple

java.lang.Object
  extended by com.espertech.esper.event.xml.SchemaElementSimple
All Implemented Interfaces:
SchemaElement, SchemaItem, java.io.Serializable

public class SchemaElementSimple
extends java.lang.Object
implements SchemaElement, java.io.Serializable

Represents a simple value in a schema.

See Also:
Serialized Form

Constructor Summary
SchemaElementSimple(java.lang.String name, java.lang.String namespace, short type, java.lang.String typeName, boolean isArray, java.lang.Integer fractionDigits)
          Ctor.
 
Method Summary
 java.lang.Integer getFractionDigits()
          Returns the fraction digits if defined.
 java.lang.String getName()
          Returns element name.
 java.lang.String getNamespace()
          Returns the namespace.
 java.lang.String getTypeName()
          Returns the type name.
 short getXsSimpleType()
          Returns type.
 boolean isArray()
          Returns true for unbounded or max>1
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaElementSimple

public SchemaElementSimple(java.lang.String name,
                           java.lang.String namespace,
                           short type,
                           java.lang.String typeName,
                           boolean isArray,
                           java.lang.Integer fractionDigits)
Ctor.

Parameters:
name - name
namespace - namespace
type - is the simple element type
isArray - if unbound
typeName - name of type
fractionDigits - fraction digits if defined
Method Detail

getName

public java.lang.String getName()
Returns element name.

Specified by:
getName in interface SchemaElement
Returns:
element name

getXsSimpleType

public short getXsSimpleType()
Returns type.

Returns:
type

getNamespace

public java.lang.String getNamespace()
Description copied from interface: SchemaElement
Returns the namespace.

Specified by:
getNamespace in interface SchemaElement
Returns:
namespace

isArray

public boolean isArray()
Description copied from interface: SchemaElement
Returns true for unbounded or max>1

Specified by:
isArray in interface SchemaElement
Returns:
array indicator

getTypeName

public java.lang.String getTypeName()
Returns the type name.

Returns:
type name

getFractionDigits

public java.lang.Integer getFractionDigits()
Returns the fraction digits if defined.

Returns:
digits

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com