org.geotools.xml.schema
Interface SimpleType

All Superinterfaces:
Type
All Known Implementing Classes:
FilterComplexTypes.SortOrderType, SimpleTypeGT, XSISimpleTypes.XSISimpleType

public interface SimpleType
extends Type

This interface is intended to represent an XML Schema simple type. This interface extends the generic XML schema type interface to represent datum within a single element.

Author:
dzwiers www.refractions.net

Field Summary
static int ALL
          Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
static int LIST
          Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
static int NONE
          Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
static int RESTRICTION
          Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
static int UNION
          Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
 
Method Summary
 boolean canCreateAttributes(Attribute attribute, java.lang.Object value, java.util.Map hints)
          DOCUMENT ME!
 int getChildType()
          Returns an int of either List, Union or Restriction
 Facet[] getFacets()
          The list of facets for this Restriction ...
 int getFinal()
           This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.
 java.lang.String getId()
           The Schema ID for this simpleType definition.
 SimpleType[] getParents()
          A simple simpleType when either a List or Restriction ...
 AttributeValue toAttribute(Attribute attribute, java.lang.Object value, java.util.Map hints)
           returns the value as a string
 
Methods inherited from interface org.geotools.xml.schema.Type
canEncode, encode, findChildElement, getInstanceType, getName, getNamespace, getValue
 

Field Detail

NONE

public static final int NONE
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance

See Also:
Constant Field Values

UNION

public static final int UNION
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance

See Also:
Constant Field Values

LIST

public static final int LIST
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance

See Also:
Constant Field Values

RESTRICTION

public static final int RESTRICTION
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance

See Also:
Constant Field Values

ALL

public static final int ALL
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance

See Also:
Constant Field Values
Method Detail

getFinal

public int getFinal()

This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.

Returns:

getId

public java.lang.String getId()

The Schema ID for this simpleType definition.

Returns:

toAttribute

public AttributeValue toAttribute(Attribute attribute,
                                  java.lang.Object value,
                                  java.util.Map hints)
                           throws javax.naming.OperationNotSupportedException

returns the value as a string

Parameters:
attribute -
value -
hints -
Returns:
Throws:
javax.naming.OperationNotSupportedException

canCreateAttributes

public boolean canCreateAttributes(Attribute attribute,
                                   java.lang.Object value,
                                   java.util.Map hints)
DOCUMENT ME!

Parameters:
attribute - DOCUMENT ME!
value - DOCUMENT ME!
hints - DOCUMENT ME!
Returns:

getChildType

public int getChildType()
Returns an int of either List, Union or Restriction

Returns:

getParents

public SimpleType[] getParents()
A simple simpleType when either a List or Restriction ... A set when a Union

Returns:

getFacets

public Facet[] getFacets()
The list of facets for this Restriction ... Null if another type (List, Union)

Returns:


Copyright © GeoTools. All Rights Reserved.