com.sun.tools.xjc.reader.xmlschema

Class UnusedCustomizationChecker

class UnusedCustomizationChecker extends BindingComponent implements XSVisitor, XSSimpleTypeVisitor

Reports all unacknowledged customizations as errors.

Since we scan the whole content tree, we use this to check for unused xmime:expectedContentTypes attributes. TODO: if we find this kind of error checks more common, use the visitors so that we don't have to mix everything in one class.

Method Summary
voidannotation(XSAnnotation ann)
voidattGroupDecl(XSAttGroupDecl decl)
voidattributeDecl(XSAttributeDecl decl)
voidattributeUse(XSAttributeUse use)
voidcomplexType(XSComplexType type)
voidelementDecl(XSElementDecl decl)
voidempty(XSContentType empty)
voidfacet(XSFacet facet)
voididentityConstraint(XSIdentityConstraint id)
voidlistSimpleType(XSListSimpleType type)
voidmodelGroup(XSModelGroup group)
voidmodelGroupDecl(XSModelGroupDecl decl)
voidnotation(XSNotation notation)
voidparticle(XSParticle particle)
voidrestrictionSimpleType(XSRestrictionSimpleType type)
voidrun()
Runs the check.
voidschema(XSSchema schema)
voidsimpleType(XSSimpleType simpleType)
voidunionSimpleType(XSUnionSimpleType type)
voidwildcard(XSWildcard wc)
voidxpath(XSXPath xp)

Method Detail

annotation

public void annotation(XSAnnotation ann)

attGroupDecl

public void attGroupDecl(XSAttGroupDecl decl)

attributeDecl

public void attributeDecl(XSAttributeDecl decl)

attributeUse

public void attributeUse(XSAttributeUse use)

complexType

public void complexType(XSComplexType type)

elementDecl

public void elementDecl(XSElementDecl decl)

empty

public void empty(XSContentType empty)

facet

public void facet(XSFacet facet)

identityConstraint

public void identityConstraint(XSIdentityConstraint id)

listSimpleType

public void listSimpleType(XSListSimpleType type)

modelGroup

public void modelGroup(XSModelGroup group)

modelGroupDecl

public void modelGroupDecl(XSModelGroupDecl decl)

notation

public void notation(XSNotation notation)

particle

public void particle(XSParticle particle)

restrictionSimpleType

public void restrictionSimpleType(XSRestrictionSimpleType type)

run

void run()
Runs the check.

schema

public void schema(XSSchema schema)

simpleType

public void simpleType(XSSimpleType simpleType)

unionSimpleType

public void unionSimpleType(XSUnionSimpleType type)

wildcard

public void wildcard(XSWildcard wc)

xpath

public void xpath(XSXPath xp)