Package 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 ofXSFunctionthat returnsBooleanto find something from schema objects.This implementation returns
Boolean.FALSEfrom 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)
-
-
Constructor Summary
Constructors Constructor Description XSFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanannotation(XSAnnotation ann)BooleanattGroupDecl(XSAttGroupDecl decl)BooleanattributeDecl(XSAttributeDecl decl)BooleanattributeUse(XSAttributeUse use)BooleancomplexType(XSComplexType type)BooleanelementDecl(XSElementDecl decl)Booleanempty(XSContentType empty)Booleanfacet(XSFacet facet)booleanfind(XSComponent c)Invokes this object as a visitor with the specified component.BooleanidentityConstraint(XSIdentityConstraint decl)BooleanmodelGroup(XSModelGroup group)BooleanmodelGroupDecl(XSModelGroupDecl decl)Booleannotation(XSNotation notation)Booleanparticle(XSParticle particle)Booleanschema(XSSchema schema)BooleansimpleType(XSSimpleType simpleType)Booleanwildcard(XSWildcard wc)Booleanxpath(XSXPath xpath)
-
-
-
Method Detail
-
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:
annotationin interfaceXSFunction<Boolean>- See Also:
XSFunction.annotation(com.sun.xml.xsom.XSAnnotation)
-
attGroupDecl
public Boolean attGroupDecl(XSAttGroupDecl decl)
- Specified by:
attGroupDeclin interfaceXSFunction<Boolean>- See Also:
XSFunction.attGroupDecl(com.sun.xml.xsom.XSAttGroupDecl)
-
attributeDecl
public Boolean attributeDecl(XSAttributeDecl decl)
- Specified by:
attributeDeclin interfaceXSFunction<Boolean>- See Also:
XSFunction.attributeDecl(com.sun.xml.xsom.XSAttributeDecl)
-
attributeUse
public Boolean attributeUse(XSAttributeUse use)
- Specified by:
attributeUsein interfaceXSFunction<Boolean>- See Also:
XSFunction.attributeUse(com.sun.xml.xsom.XSAttributeUse)
-
complexType
public Boolean complexType(XSComplexType type)
- Specified by:
complexTypein interfaceXSFunction<Boolean>- See Also:
XSFunction.complexType(com.sun.xml.xsom.XSComplexType)
-
schema
public Boolean schema(XSSchema schema)
- Specified by:
schemain interfaceXSFunction<Boolean>- See Also:
XSFunction.schema(com.sun.xml.xsom.XSSchema)
-
facet
public Boolean facet(XSFacet facet)
- Specified by:
facetin interfaceXSFunction<Boolean>- See Also:
XSFunction.facet(com.sun.xml.xsom.XSFacet)
-
notation
public Boolean notation(XSNotation notation)
- Specified by:
notationin interfaceXSFunction<Boolean>- See Also:
XSFunction.notation(com.sun.xml.xsom.XSNotation)
-
simpleType
public Boolean simpleType(XSSimpleType simpleType)
- Specified by:
simpleTypein interfaceXSContentTypeFunction<Boolean>- See Also:
XSContentTypeFunction.simpleType(com.sun.xml.xsom.XSSimpleType)
-
particle
public Boolean particle(XSParticle particle)
- Specified by:
particlein interfaceXSContentTypeFunction<Boolean>- See Also:
XSContentTypeFunction.particle(com.sun.xml.xsom.XSParticle)
-
empty
public Boolean empty(XSContentType empty)
- Specified by:
emptyin interfaceXSContentTypeFunction<Boolean>- See Also:
XSContentTypeFunction.empty(com.sun.xml.xsom.XSContentType)
-
wildcard
public Boolean wildcard(XSWildcard wc)
- Specified by:
wildcardin interfaceXSTermFunction<Boolean>- See Also:
XSTermFunction.wildcard(com.sun.xml.xsom.XSWildcard)
-
modelGroupDecl
public Boolean modelGroupDecl(XSModelGroupDecl decl)
- Specified by:
modelGroupDeclin interfaceXSTermFunction<Boolean>- See Also:
XSTermFunction.modelGroupDecl(com.sun.xml.xsom.XSModelGroupDecl)
-
modelGroup
public Boolean modelGroup(XSModelGroup group)
- Specified by:
modelGroupin interfaceXSTermFunction<Boolean>- See Also:
XSTermFunction.modelGroup(com.sun.xml.xsom.XSModelGroup)
-
elementDecl
public Boolean elementDecl(XSElementDecl decl)
- Specified by:
elementDeclin interfaceXSTermFunction<Boolean>- See Also:
XSTermFunction.elementDecl(com.sun.xml.xsom.XSElementDecl)
-
identityConstraint
public Boolean identityConstraint(XSIdentityConstraint decl)
- Specified by:
identityConstraintin interfaceXSFunction<Boolean>
-
xpath
public Boolean xpath(XSXPath xpath)
- Specified by:
xpathin interfaceXSFunction<Boolean>
-
-