Package org.geotools.xml.schema
Interface SimpleType
-
- All Superinterfaces:
Type
- All Known Implementing Classes:
FilterComplexTypes.SortOrderType
,ogcSimpleType
,ogcSimpleTypes.CapabilitiesSectionType
,ogcSimpleTypes.ExceptionsType
,ogcSimpleTypes.FormatType
,ogcSimpleTypes.OWSType
,SimpleTypeGT
,sldSimpleTypes._Service
,XSISimpleTypes.AnyType
,XSISimpleTypes.AnyURI
,XSISimpleTypes.Base64Binary
,XSISimpleTypes.Boolean
,XSISimpleTypes.Byte
,XSISimpleTypes.Date
,XSISimpleTypes.DateTime
,XSISimpleTypes.Decimal
,XSISimpleTypes.Double
,XSISimpleTypes.Duration
,XSISimpleTypes.ENTITIES
,XSISimpleTypes.ENTITY
,XSISimpleTypes.Float
,XSISimpleTypes.gDay
,XSISimpleTypes.gMonth
,XSISimpleTypes.gMonthDay
,XSISimpleTypes.gYear
,XSISimpleTypes.gYearMonth
,XSISimpleTypes.HexBinary
,XSISimpleTypes.ID
,XSISimpleTypes.IDREF
,XSISimpleTypes.IDREFS
,XSISimpleTypes.Int
,XSISimpleTypes.Integer
,XSISimpleTypes.Language
,XSISimpleTypes.Long
,XSISimpleTypes.Name
,XSISimpleTypes.NCName
,XSISimpleTypes.NegativeInteger
,XSISimpleTypes.NMTOKEN
,XSISimpleTypes.NMTOKENS
,XSISimpleTypes.NonNegativeInteger
,XSISimpleTypes.NonPositiveInteger
,XSISimpleTypes.NormalizedString
,XSISimpleTypes.NOTATION
,XSISimpleTypes.PositiveInteger
,XSISimpleTypes.QName
,XSISimpleTypes.Short
,XSISimpleTypes.String
,XSISimpleTypes.Time
,XSISimpleTypes.Token
,XSISimpleTypes.UnsignedByte
,XSISimpleTypes.UnsignedInt
,XSISimpleTypes.UnsignedLong
,XSISimpleTypes.UnsignedShort
,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
Fields Modifier and Type Field Description static int
ALL
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritancestatic int
LIST
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritancestatic int
NONE
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritancestatic int
RESTRICTION
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritancestatic int
UNION
Represents a masks used to represent how this simpleType may or may not be changed though the use of inheritance
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canCreateAttributes(Attribute attribute, Object value, Map<String,Object> hints)
int
getChildType()
Returns an int of either List, Union or RestrictionFacet[]
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.String
getId()
The Schema ID for this simpleType definition.SimpleType[]
getParents()
A simple simpleType when either a List or Restriction ...AttributeValue
toAttribute(Attribute attribute, Object value, Map<String,Object> hints)
returns the value as a string-
Methods inherited from interface Type
canEncode, encode, findChildElement, getInstanceType, getName, getNamespace, getValue
-
-
-
-
Field Detail
-
NONE
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
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
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
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
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
int getFinal()
This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.
-
getId
String getId()
The Schema ID for this simpleType definition.
-
toAttribute
AttributeValue toAttribute(Attribute attribute, Object value, Map<String,Object> hints) throws OperationNotSupportedException
returns the value as a string- Throws:
OperationNotSupportedException
-
canCreateAttributes
boolean canCreateAttributes(Attribute attribute, Object value, Map<String,Object> hints)
-
getChildType
int getChildType()
Returns an int of either List, Union or Restriction
-
getParents
SimpleType[] getParents()
A simple simpleType when either a List or Restriction ... A set when a Union
-
getFacets
Facet[] getFacets()
The list of facets for this Restriction ... Null if another type (List, Union)
-
-