com.sun.xml.xsom.impl
Class WildcardImpl

java.lang.Object
  extended by com.sun.xml.xsom.impl.ComponentImpl
      extended by com.sun.xml.xsom.impl.WildcardImpl
All Implemented Interfaces:
Ref.Term, XSComponent, XSTerm, XSWildcard
Direct Known Subclasses:
WildcardImpl.Any, WildcardImpl.Finite, WildcardImpl.Other

public abstract class WildcardImpl
extends ComponentImpl
implements XSWildcard, Ref.Term


Nested Class Summary
static class WildcardImpl.Any
           
static class WildcardImpl.Finite
           
static class WildcardImpl.Other
           
 
Nested classes/interfaces inherited from interface com.sun.xml.xsom.XSWildcard
XSWildcard.Union
 
Field Summary
 
Fields inherited from class com.sun.xml.xsom.impl.ComponentImpl
ownerDocument
 
Fields inherited from interface com.sun.xml.xsom.XSWildcard
LAX, SKIP, STRTICT
 
Constructor Summary
protected WildcardImpl(SchemaDocumentImpl owner, AnnotationImpl _annon, Locator _loc, ForeignAttributesImpl _fa, int _mode)
           
 
Method Summary
 Object apply(XSFunction function)
          Accepts a functor.
 Object apply(XSTermFunction function)
           
<T,P> T
apply(XSTermFunctionWithParam<T,P> function, P param)
           
 XSElementDecl asElementDecl()
           
 XSModelGroup asModelGroup()
           
 XSModelGroupDecl asModelGroupDecl()
           
 XSWildcard asWildcard()
           
 int getMode()
          Gets the processing mode.
 XSTerm getTerm()
          Obtains a reference as a term.
 boolean isElementDecl()
           
 boolean isModelGroup()
           
 boolean isModelGroupDecl()
           
 boolean isWildcard()
           
 WildcardImpl union(SchemaDocumentImpl owner, WildcardImpl rhs)
           
 void visit(XSTermVisitor visitor)
           
 void visit(XSVisitor visitor)
          Accepts a visitor.
 
Methods inherited from class com.sun.xml.xsom.impl.ComponentImpl
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.xml.xsom.XSWildcard
acceptsNamespace, apply, visit
 
Methods inherited from interface com.sun.xml.xsom.XSComponent
getAnnotation, getAnnotation, getForeignAttribute, getForeignAttributes, getLocator, getOwnerSchema, getRoot, getSourceDocument, select, selectSingle
 

Constructor Detail

WildcardImpl

protected WildcardImpl(SchemaDocumentImpl owner,
                       AnnotationImpl _annon,
                       Locator _loc,
                       ForeignAttributesImpl _fa,
                       int _mode)
Method Detail

getMode

public int getMode()
Description copied from interface: XSWildcard
Gets the processing mode.

Specified by:
getMode in interface XSWildcard
Returns:
Either LAX, STRICT, or SKIP.

union

public WildcardImpl union(SchemaDocumentImpl owner,
                          WildcardImpl rhs)

visit

public final void visit(XSVisitor visitor)
Description copied from interface: XSComponent
Accepts a visitor.

Specified by:
visit in interface XSComponent

visit

public final void visit(XSTermVisitor visitor)
Specified by:
visit in interface XSTerm

apply

public Object apply(XSTermFunction function)
Specified by:
apply in interface XSTerm

apply

public <T,P> T apply(XSTermFunctionWithParam<T,P> function,
                     P param)
Specified by:
apply in interface XSTerm

apply

public Object apply(XSFunction function)
Description copied from interface: XSComponent
Accepts a functor.

Specified by:
apply in interface XSComponent

isWildcard

public boolean isWildcard()
Specified by:
isWildcard in interface XSTerm

isModelGroupDecl

public boolean isModelGroupDecl()
Specified by:
isModelGroupDecl in interface XSTerm

isModelGroup

public boolean isModelGroup()
Specified by:
isModelGroup in interface XSTerm

isElementDecl

public boolean isElementDecl()
Specified by:
isElementDecl in interface XSTerm

asWildcard

public XSWildcard asWildcard()
Specified by:
asWildcard in interface XSTerm

asModelGroupDecl

public XSModelGroupDecl asModelGroupDecl()
Specified by:
asModelGroupDecl in interface XSTerm

asModelGroup

public XSModelGroup asModelGroup()
Specified by:
asModelGroup in interface XSTerm

asElementDecl

public XSElementDecl asElementDecl()
Specified by:
asElementDecl in interface XSTerm

getTerm

public XSTerm getTerm()
Description copied from interface: Ref.Term
Obtains a reference as a term.

Specified by:
getTerm in interface Ref.Term


Copyright © 2012 Oracle. All Rights Reserved.