Class XSSimpleTypeDecl

java.lang.Object
org.apache.jena.ext.xerces.impl.dv.xs.XSSimpleTypeDecl
All Implemented Interfaces:
XSSimpleType, XSObject, XSSimpleTypeDefinition, XSTypeDefinition

public class XSSimpleTypeDecl extends Object implements XSSimpleType
@xerces.internal
Version:
$Id: XSSimpleTypeDecl.java 1026362 2010-10-22 15:15:18Z sandygao $
Author:
Sandy Gao, IBM, Neeraj Bajaj, Sun Microsystems, inc.
  • Constructor Details

    • XSSimpleTypeDecl

      public XSSimpleTypeDecl()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: XSObject
      The name of type NCName, as defined in XML Namespaces, of this declaration specified in the {name} property of the component or null if the definition of this component does not have a {name} property. For anonymous types, the processor must construct and expose an anonymous type name that is distinct from the name of every named type and the name of every other anonymous type.
      Specified by:
      getName in interface XSObject
    • getNamespace

      public String getNamespace()
      Description copied from interface: XSObject
      The [target namespace] of this object, or null if it is unspecified.
      Specified by:
      getNamespace in interface XSObject
    • getBaseType

      public XSTypeDefinition getBaseType()
      Description copied from interface: XSTypeDefinition
      {base type definition}: either a simple type definition or a complex type definition.
      Specified by:
      getBaseType in interface XSTypeDefinition
    • validate

      public Object validate(String content, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
      validate a value, and return the compiled form
      Specified by:
      validate in interface XSSimpleType
      Parameters:
      content - the string value that needs to be validated
      validatedInfo - used to store validation result
      Returns:
      the actual value (QName, Boolean) of the string value
      Throws:
      InvalidDatatypeValueException
    • validate

      public void validate(ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
      validate an actual value against this DV
      Specified by:
      validate in interface XSSimpleType
      Parameters:
      validatedInfo - used to provide the actual value and member types
      Throws:
      InvalidDatatypeValueException - exception for invalid values.
    • isEqual

      public boolean isEqual(Object value1, Object value2)
      Description copied from interface: XSSimpleType
      Check whether two actual values are equal.
      Specified by:
      isEqual in interface XSSimpleType
      Parameters:
      value1 - the first value
      value2 - the second value
      Returns:
      true if the two value are equal
    • normalize

      public static String normalize(String content, short ws)
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: