Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.impl » schema » [javadoc | source]
org.apache.xmlbeans.impl.schema
public class: StscState [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.impl.schema.StscState
This class represents the state of the SchemaTypeSystemCompiler as it's going.
Field Summary
public static final  Object CHAMELEON_INCLUDE_URI    Used to store the new target namespace for a chameleon included schema. 
static final  SchemaType[] EMPTY_ST_ARRAY     
static final  Ref[] EMPTY_STREF_ARRAY     
static final  XmlValueRef[] FACETS_UNION     
static final  boolean[] FIXED_FACETS_UNION     
static final  XmlValueRef[] FACETS_LIST     
static final  boolean[] FIXED_FACETS_LIST     
 Map _sourceForUri     
 URI _baseURI     
 SchemaTypeLoader _s4sloader     
Method from org.apache.xmlbeans.impl.schema.StscState Summary:
addAnnotation,   addAttributeGroup,   addAttributeType,   addClassname,   addDocumentType,   addError,   addError,   addError,   addError,   addGlobalAttribute,   addGlobalElement,   addGlobalType,   addIdConstraint,   addInfo,   addInfo,   addModelGroup,   addNamespace,   addNewContainer,   addSchemaDigest,   addSourceUri,   addSpelling,   addWarning,   addWarning,   allowPartial,   annotations,   attributeGroups,   attributeTypes,   buildString,   build_wsstring,   computeSavedFilename,   documentTypes,   end,   error,   error,   findAttributeGroup,   findAttributeType,   findDocumentType,   findGlobalAttribute,   findGlobalElement,   findGlobalType,   findIdConstraint,   findModelGroup,   findRedefinedAttributeGroup,   findRedefinedGlobalType,   findRedefinedModelGroup,   findSpelling,   finishProcessing,   get,   getBindingConfig,   getContainer,   getContainerMap,   getCurrentProcessing,   getDependencies,   getEntityResolver,   getErrorListener,   getJavaPrefix,   getJavaSuffix,   getJavaname,   getNamespaces,   getPackageOverride,   getRecovered,   getS4SLoader,   getSchemasDir,   globalAttributes,   globalElements,   globalTypes,   idConstraints,   info,   info,   initFromTypeSystem,   isFileProcessed,   isProcessing,   linkerDefinesNamespace,   modelGroups,   noAnn,   noPvr,   noUpa,   notFoundError,   recover,   redefinedAttributeGroups,   redefinedGlobalTypes,   redefinedModelGroups,   registerContribution,   registerDependency,   relativize,   setBaseUri,   setBindingConfig,   setDependencies,   setErrorListener,   setGivenTypeSystemName,   setImportingTypeLoader,   setOptions,   setSchemasDir,   setTargetSchemaTypeSystem,   shouldDownloadURI,   sourceCopyMap,   sourceNameForUri,   start,   startProcessing,   sts,   typesByClassname,   warning,   warning
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.impl.schema.StscState Detail:
  void addAnnotation(SchemaAnnotationImpl ann,
    String targetNamespace) 
  void addAttributeGroup(SchemaAttributeGroupImpl attributeGroup,
    SchemaAttributeGroupImpl redefined) 
  void addAttributeType(SchemaTypeImpl type,
    QName name) 
  void addClassname(String classname,
    SchemaType type) 
  void addDocumentType(SchemaTypeImpl type,
    QName name) 
 public static  void addError(Collection errorListener,
    String message,
    int code,
    XmlObject location) 
 public static  void addError(Collection errorListener,
    String code,
    Object[] args,
    XmlObject location) 
 public static  void addError(Collection errorListener,
    String code,
    Object[] args,
    File location) 
 public static  void addError(Collection errorListener,
    String code,
    Object[] args,
    URL location) 
  void addGlobalAttribute(SchemaGlobalAttributeImpl attribute) 
  void addGlobalElement(SchemaGlobalElementImpl element) 
  void addGlobalType(SchemaTypeImpl type,
    SchemaTypeImpl redefined) 
  void addIdConstraint(SchemaIdentityConstraintImpl idc) 
 public static  void addInfo(Collection errorListener,
    String message) 
 public static  void addInfo(Collection errorListener,
    String code,
    Object[] args) 
  void addModelGroup(SchemaModelGroupImpl modelGroup,
    SchemaModelGroupImpl redefined) 
  void addNamespace(String targetNamespace) 
  void addNewContainer(String namespace) 
 public  void addSchemaDigest(byte[] digest) 
    Accumulates a schema digest...
 public  void addSourceUri(String uri,
    String nameToUse) 
    Notes another URI that has been consumed during compilation (this is the URI that is in the document .NAME property)
  void addSpelling(QName name,
    SchemaComponent comp) 
 public static  void addWarning(Collection errorListener,
    String message,
    int code,
    XmlObject location) 
 public static  void addWarning(Collection errorListener,
    String code,
    Object[] args,
    XmlObject location) 
 public boolean allowPartial() 
    True if a partial SchemaTypeSystem should be produced
 List annotations() 
 SchemaAttributeGroup[] attributeGroups() 
 SchemaType[] attributeTypes() 
 static XmlValueRef buildString(String str) 
 static XmlValueRef build_wsstring(int wsr) 
 public String computeSavedFilename(String uri) 
 SchemaType[] documentTypes() 
 public static  void end() 
 public  void error(String message,
    int code,
    XmlObject loc) 
    Passes an error on to the current error listener. KHK: remove this
 public  void error(String code,
    Object[] args,
    XmlObject loc) 
    Passes an error on to the current error listener.
 SchemaAttributeGroupImpl findAttributeGroup(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaTypeImpl findAttributeType(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaTypeImpl findDocumentType(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaGlobalAttributeImpl findGlobalAttribute(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaGlobalElementImpl findGlobalElement(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaTypeImpl findGlobalType(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaIdentityConstraintImpl findIdConstraint(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaModelGroupImpl findModelGroup(QName name,
    String chameleonNamespace,
    String sourceNamespace) 
 SchemaAttributeGroupImpl findRedefinedAttributeGroup(QName name,
    String chameleonNamespace,
    SchemaAttributeGroupImpl redefinedBy) 
 SchemaTypeImpl findRedefinedGlobalType(QName name,
    String chameleonNamespace,
    SchemaTypeImpl redefinedBy) 
 SchemaModelGroupImpl findRedefinedModelGroup(QName name,
    String chameleonNamespace,
    SchemaModelGroupImpl redefinedBy) 
 SchemaComponent findSpelling(QName name) 
  void finishProcessing(Object obj) 
 public static StscState get() 
 public BindingConfig getBindingConfig() throws IllegalArgumentException 
 SchemaContainer getContainer(String namespace) 
 Map getContainerMap() 
 Object[] getCurrentProcessing() 
 SchemaDependencies getDependencies() 
 public EntityResolver getEntityResolver() 
    May return null if there is no custom entity resolver.
 public Collection getErrorListener() 
    Returns the error listener being filled in during this compilation
 public String getJavaPrefix(String namespace) 
    Looks up package override for a namespace URI
 public String getJavaSuffix(String namespace) 
    Looks up package override for a namespace URI
 public String getJavaname(QName qname,
    int kind) 
    Looks up configured java name for the given qname.
 String[] getNamespaces() 
 public String getPackageOverride(String namespace) 
    Looks up package override for a namespace URI
 public int getRecovered() 
    Get count of recovered errors. Not for public.
 public SchemaTypeLoader getS4SLoader() 
    Returns the schema type loader to use for processing s4s
 public File getSchemasDir() 
 SchemaGlobalAttribute[] globalAttributes() 
 SchemaGlobalElement[] globalElements() 
 SchemaType[] globalTypes() 
 SchemaIdentityConstraintImpl[] idConstraints() 
 public  void info(String message) 
    Passes a warning on to the current error listener.
 public  void info(String code,
    Object[] args) 
    Passes a warning on to the current error listener.
 public  void initFromTypeSystem(SchemaTypeSystemImpl system,
    Set newNamespaces) 
    Initializer for incremental compilation
 boolean isFileProcessed(String url) 
 boolean isProcessing(Object obj) 
 boolean linkerDefinesNamespace(String namespace) 
 SchemaModelGroup[] modelGroups() 
 public boolean noAnn() 
    True if annotations should be skipped
 public boolean noPvr() 
    True if no particle valid (restriciton) option is set
 public boolean noUpa() 
    True if no unique particle attribution option is set
 public  void notFoundError(QName itemName,
    int code,
    XmlObject loc,
    boolean recovered) 
 public  void recover(String code,
    Object[] args,
    XmlObject loc) 
    Passes a recovered error on to the current error listener.
 SchemaAttributeGroup[] redefinedAttributeGroups() 
 SchemaType[] redefinedGlobalTypes() 
 SchemaModelGroup[] redefinedModelGroups() 
  void registerContribution(String ns,
    String fileUrl) 
  void registerDependency(String sourceNs,
    String targetNs) 
 public String relativize(String uri) 
 public  void setBaseUri(URI uri) 
    The base URI to use for nice filenames when saving sources.
 public  void setBindingConfig(BindingConfig config) throws IllegalArgumentException 
    Initializer for the schema config object.
  void setDependencies(SchemaDependencies deps) 
 public  void setErrorListener(Collection errorListener) 
    Initializer for error handling.
 public  void setGivenTypeSystemName(String name) 
 public  void setImportingTypeLoader(SchemaTypeLoader loader) 
    Initializer for schematypepath
 public  void setOptions(XmlOptions options) 
    Initializer for compatMap.
 public  void setSchemasDir(File _schemasDir) 
 public  void setTargetSchemaTypeSystem(SchemaTypeSystemImpl target) 
    Initializer for references to the SchemaTypeLoader
 public boolean shouldDownloadURI(String uriString) 
    True if the given URI is a local file
 public Map sourceCopyMap() 
    Returns the whole sourceCopyMap, mapping URI's that have been read to "sourceName" local names that have been used to tag the types.
 public String sourceNameForUri(String uri) 
    Produces the "sourceName" (to be used within the schema project source file copies) from the URI of the original source. Returns null if none.
 public static StscState start() 
  void startProcessing(Object obj) 
 public SchemaTypeSystemImpl sts() 
    The SchemaTypeSystem which we're building types on behalf of.
 Map typesByClassname() 
 public  void warning(String message,
    int code,
    XmlObject loc) 
    Passes an error on to the current error listener.
 public  void warning(String code,
    Object[] args,
    XmlObject loc) 
    Passes an error on to the current error listener.