Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.msv.grammar.trex
Class ElementPattern

    java.lang.Object
      com.sun.msv.grammar.Expression
          com.sun.msv.grammar.ElementExp
              com.sun.msv.grammar.trex.ElementPattern

All Implemented Interfaces:
  NameClassAndExpression, java.io.Serializable

Direct Known Subclasses:
  SkipElementExp, TypedElementPattern

public class ElementPattern
extends ElementExp

<element> pattern of TREX.

Author:
  Kohsuke KAWAGUCHI
See Also:
  Serialized Form

Field Summary
`NameClass` | `nameClass`

Fields inherited from class com.sun.msv.grammar.ElementExp
`contentModel, ignoreUndeclaredAttributes`

Fields inherited from class com.sun.msv.grammar.Expression
`anyString, epsilon, nullSet, verifierTag`

Constructor Summary
`ElementPattern(NameClass nameClass, Expression contentModel)`

Method Summary
`NameClass` | `getNameClass()` obtains a constraint over tag name.

Methods inherited from class com.sun.msv.grammar.ElementExp
`equals, getContentModel, visit, visit, visit, visit`

Methods inherited from class com.sun.msv.grammar.Expression
`getExpandedExp, hashCode, isEpsilonReducible, peelOccurence, visit, visit, visit, visit`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### nameClass

    public final NameClass nameClass

Constructor Detail

### ElementPattern

    public ElementPattern(NameClass nameClass,
                          Expression contentModel)

Method Detail

### getNameClass

    public final NameClass getNameClass()

  Description copied from class: `ElementExp`
  obtains a constraint over tag name. ElementExp is cannot be shared because NameClass has to be mutable to absorb the difference of RELAX and TREX. In case of TREX, name class will be determined when parsing ElementExp itself. Thus effectively it's immutable. In case of RELAX, name class will be determined when its corresponding Clause object is parsed.

  Specified by:
    `getNameClass` in interface `NameClassAndExpression`
  Specified by:
    `getNameClass` in class `ElementExp`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD