Package org.geotools.xml.xsi
Class XSISimpleTypes.XSISimpleType
Object
XSISimpleType
- All Implemented Interfaces:
SimpleType,Type
- Direct Known Subclasses:
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
- Enclosing class:
- XSISimpleTypes
A generic implementation of a SimpleType for use by the xsi Schema.
- Author:
- dzwiers
-
Field Summary
Fields inherited from interface SimpleType
ALL, LIST, NONE, RESTRICTION, UNION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanCan I write this object out as element specified?voidEncode value as element on the provided output.findChildElement(String name) Convinience method used to search this type's children for the requested element by localName.intReturns an int of either List, Union or RestrictionFacet[]The list of facets for this Restriction ...intgetFinal()This specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.getId()The Schema ID for this simpleType definition.static SimpleTypeThis method is intended to return an instance of the implemented type.This is used for validation of an XML document, and represents the targetNamespace of that this type resides in.A simple simpleType when either a List or Restriction ...returns the value as a stringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Type
getInstanceType, getName, getValue
-
Constructor Details
-
XSISimpleType
protected XSISimpleType()
-
-
Method Details
-
findChildElement
- See Also:
-
canCreateAttributes
- Specified by:
canCreateAttributesin interfaceSimpleType- See Also:
-
canEncode
Description copied from interface:TypeCan I write this object out as element specified?- Specified by:
canEncodein interfaceType- Parameters:
element- The element which may be used to represent the Object. This is included to allow for child definitions to include addition information where appropriate.value- An Object which may or may not be encodeable by this type. The value may also be null.- Returns:
- True when the encode method can interpret the given element/value pair into valid xml.
- See Also:
-
toAttribute
Description copied from interface:SimpleTypereturns the value as a string- Specified by:
toAttributein interfaceSimpleType- See Also:
-
encode
public void encode(Element element, Object value, PrintHandler output, Map<String, Object> hints) throws IOExceptionDescription copied from interface:TypeEncode value as element on the provided output.This is encoding because the PrintHandler does not have to go back to a stream.
- Specified by:
encodein interfaceType- Parameters:
element- The original element declaration to which we should encode.value- The Object to encode.output- This is where the output should be written to.hints- For providing additional context information to specific schemas.- Throws:
IOException- When there is an error with the Writer.- See Also:
-
getInstance
This method is intended to return an instance of the implemented type.- Returns:
- SimpleType
- Throws:
RuntimeException- when not overridden
-
getParent
- See Also:
-
org.geotools.xml.xsi.Type#getParent()
-
getNamespace
Description copied from interface:TypeThis is used for validation of an XML document, and represents the targetNamespace of that this type resides in.- Specified by:
getNamespacein interfaceType- See Also:
-
org.geotools.xml.xsi.Type#getNamespace()
-
getFinal
public int getFinal()Description copied from interface:SimpleTypeThis specifies a mask which represents how this XML Schema SimpleType may be extended/restricted ... through Schema declared derivations.- Specified by:
getFinalin interfaceSimpleType- See Also:
-
org.geotools.xml.xsi.SimpleType#getFinal()
-
getId
Description copied from interface:SimpleTypeThe Schema ID for this simpleType definition.- Specified by:
getIdin interfaceSimpleType- See Also:
-
org.geotools.xml.xsi.SimpleType#getId()
-
getChildType
public int getChildType()Description copied from interface:SimpleTypeReturns an int of either List, Union or Restriction- Specified by:
getChildTypein interfaceSimpleType- See Also:
-
getParents
Description copied from interface:SimpleTypeA simple simpleType when either a List or Restriction ... A set when a Union- Specified by:
getParentsin interfaceSimpleType- See Also:
-
getFacets
Description copied from interface:SimpleTypeThe list of facets for this Restriction ... Null if another type (List, Union)- Specified by:
getFacetsin interfaceSimpleType- See Also:
-
findChildElement
Description copied from interface:TypeConvinience method used to search this type's children for the requested element by localName.- Specified by:
findChildElementin interfaceType- Parameters:
name- the element's localName to search for.- See Also:
-