Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

WebLogic Server 6.0sp2 API Reference

## weblogic.apache.xerces.validators.common
Class GrammarResolverImpl

    java.lang.Object
      |
      +--weblogic.apache.xerces.validators.common.GrammarResolverImpl

public class GrammarResolverImpl
extends java.lang.Object
implements GrammarResolver

This class embodies the representation of a Schema Grammar pool. This class is called from the validator. Grammar pool maps to a set of Grammar Proxy classes.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.

Version:
  $Id: GrammarResolverImpl.java,v 1.2 2000/05/17 18:33:04 jeffreyr Exp $
Author:
  Jeffrey Rodriguez
  Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
`GrammarResolverImpl()` Default constructor.

Method Summary
`void` | `clearGrammarResolver()` Reset internal Namespace/Grammar registry.
`boolean` | `contains(Grammar grammar)` Is Grammar abstraction in Grammar pool?
`boolean` | `containsNameSpace(java.lang.String nameSpaceKey)` Is Namespace key in Grammar pool
`Grammar` | `getGrammar(java.lang.String nameSpaceKey)`
`java.lang.String[]` | `getNSKeysInPool()`
`java.util.Enumeration` | `nameSpaceKeys()`
`void` | `putGrammar(java.lang.String nameSpaceKey, Grammar grammar)`
`Grammar` | `removeGrammar(java.lang.String nameSpaceKey)` Removes association of Namespace key and Grammar from Grammar pool
`int` | `size()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### GrammarResolverImpl

    public GrammarResolverImpl()

  Default constructor.

Method Detail

### getGrammar

    public Grammar getGrammar(java.lang.String nameSpaceKey)

  Specified by:
    getGrammar in interface GrammarResolver

  Parameters:
    `nameSpaceKey` - Namespace key into Grammar pool
  Returns:
    Grammar abstraction associated with NameSpace key.

### getNSKeysInPool

    public java.lang.String[] getNSKeysInPool()

  Returns:
    Array of String key name spaces in Grammar pool

### putGrammar

    public void putGrammar(java.lang.String nameSpaceKey,
                           Grammar grammar)

  Specified by:
    putGrammar in interface GrammarResolver

  Parameters:
    `nameSpaceKey` - Key to associate with Grammar abstraction
    `grammar` - Grammar abstraction used by validator.

### size

    public int size()

  Specified by:
    size in interface GrammarResolver

  Returns:
    Length of grammar pool. Number of associations.

### nameSpaceKeys

    public java.util.Enumeration nameSpaceKeys()

  Specified by:
    nameSpaceKeys in interface GrammarResolver

  Returns:
    Enumeration of String key name spaces in Grammar pool

### removeGrammar

    public Grammar removeGrammar(java.lang.String nameSpaceKey)

  Removes association of Namespace key and Grammar from Grammar pool
  Specified by:
    removeGrammar in interface GrammarResolver

  Parameters:
    `nameSpaceKey` - Name space key

### contains

    public boolean contains(Grammar grammar)

  Is Grammar abstraction in Grammar pool?
  Specified by:
    contains in interface GrammarResolver

  Parameters:
    `grammar` - Grammar Abstraction
  Returns:
    true - Yes there is at least one instance false - No

### containsNameSpace

    public boolean containsNameSpace(java.lang.String nameSpaceKey)

  Is Namespace key in Grammar pool
  Specified by:
    containsNameSpace in interface GrammarResolver

  Parameters:
    `nameSpaceKey` - Namespace key
  Returns:
    Boolean- true - Namespace key association is in grammar pool.

### clearGrammarResolver

    public void clearGrammarResolver()

  Reset internal Namespace/Grammar registry.
  Specified by:
    clearGrammarResolver in interface GrammarResolver

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://e-docs.bea.com/wls/docs60
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD