com.sun.xml.xsom.util
Class XSFinder
java.lang.Object
com.sun.xml.xsom.util.XSFinder
- All Implemented Interfaces:
- XSContentTypeFunction<Boolean>, XSFunction<Boolean>, XSTermFunction<Boolean>
public class XSFinder
- extends Object
- implements XSFunction<Boolean>
Utility implementation of XSFunction
that returns
Boolean
to find something from schema objects.
This implementation returns Boolean.FALSE
from
all of the methods. The derived class is expected to override
some of the methods to actually look for something.
- Author:
- Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSFinder
public XSFinder()
find
public final boolean find(XSComponent c)
- Invokes this object as a visitor with the specified component.
annotation
public Boolean annotation(XSAnnotation ann)
- Specified by:
annotation
in interface XSFunction<Boolean>
- See Also:
XSFunction.annotation(com.sun.xml.xsom.XSAnnotation)
attGroupDecl
public Boolean attGroupDecl(XSAttGroupDecl decl)
- Specified by:
attGroupDecl
in interface XSFunction<Boolean>
- See Also:
XSFunction.attGroupDecl(com.sun.xml.xsom.XSAttGroupDecl)
attributeDecl
public Boolean attributeDecl(XSAttributeDecl decl)
- Specified by:
attributeDecl
in interface XSFunction<Boolean>
- See Also:
XSFunction.attributeDecl(com.sun.xml.xsom.XSAttributeDecl)
attributeUse
public Boolean attributeUse(XSAttributeUse use)
- Specified by:
attributeUse
in interface XSFunction<Boolean>
- See Also:
XSFunction.attributeUse(com.sun.xml.xsom.XSAttributeUse)
complexType
public Boolean complexType(XSComplexType type)
- Specified by:
complexType
in interface XSFunction<Boolean>
- See Also:
XSFunction.complexType(com.sun.xml.xsom.XSComplexType)
schema
public Boolean schema(XSSchema schema)
- Specified by:
schema
in interface XSFunction<Boolean>
- See Also:
XSFunction.schema(com.sun.xml.xsom.XSSchema)
facet
public Boolean facet(XSFacet facet)
- Specified by:
facet
in interface XSFunction<Boolean>
- See Also:
XSFunction.facet(com.sun.xml.xsom.XSFacet)
notation
public Boolean notation(XSNotation notation)
- Specified by:
notation
in interface XSFunction<Boolean>
- See Also:
XSFunction.notation(com.sun.xml.xsom.XSNotation)
simpleType
public Boolean simpleType(XSSimpleType simpleType)
- Specified by:
simpleType
in interface XSContentTypeFunction<Boolean>
- See Also:
XSContentTypeFunction.simpleType(com.sun.xml.xsom.XSSimpleType)
particle
public Boolean particle(XSParticle particle)
- Specified by:
particle
in interface XSContentTypeFunction<Boolean>
- See Also:
XSContentTypeFunction.particle(com.sun.xml.xsom.XSParticle)
empty
public Boolean empty(XSContentType empty)
- Specified by:
empty
in interface XSContentTypeFunction<Boolean>
- See Also:
XSContentTypeFunction.empty(com.sun.xml.xsom.XSContentType)
wildcard
public Boolean wildcard(XSWildcard wc)
- Specified by:
wildcard
in interface XSTermFunction<Boolean>
- See Also:
XSTermFunction.wildcard(com.sun.xml.xsom.XSWildcard)
modelGroupDecl
public Boolean modelGroupDecl(XSModelGroupDecl decl)
- Specified by:
modelGroupDecl
in interface XSTermFunction<Boolean>
- See Also:
XSTermFunction.modelGroupDecl(com.sun.xml.xsom.XSModelGroupDecl)
modelGroup
public Boolean modelGroup(XSModelGroup group)
- Specified by:
modelGroup
in interface XSTermFunction<Boolean>
- See Also:
XSTermFunction.modelGroup(com.sun.xml.xsom.XSModelGroup)
elementDecl
public Boolean elementDecl(XSElementDecl decl)
- Specified by:
elementDecl
in interface XSTermFunction<Boolean>
- See Also:
XSTermFunction.elementDecl(com.sun.xml.xsom.XSElementDecl)
identityConstraint
public Boolean identityConstraint(XSIdentityConstraint decl)
- Specified by:
identityConstraint
in interface XSFunction<Boolean>
xpath
public Boolean xpath(XSXPath xpath)
- Specified by:
xpath
in interface XSFunction<Boolean>
Copyright © 2012 Oracle. All Rights Reserved.