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.
| Modifier and Type | Field and Description |
|---|---|
| private final BGMBuilder | |
| private final SimpleTypeBuilder | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| private boolean | check(XSComponent c)
Checks unused customizations on this component and returns true if this is the first time this component is checked. |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| private void | |
| public void | |
| public void | simpleType(XSSimpleType simpleType)
Implements com.
|
| public void | |
| public void | |
| public void |
| builder | back to summary |
|---|---|
| private final BGMBuilder builder | |
| stb | back to summary |
|---|---|
| private final SimpleTypeBuilder stb | |
| visitedComponents | back to summary |
|---|---|
| private final Set<XSComponent> visitedComponents | |
| UnusedCustomizationChecker | back to summary |
|---|---|
| pack-priv UnusedCustomizationChecker() | |
| annotation | back to summary |
|---|---|
| public void annotation(XSAnnotation ann) Implements com.
| |
| attContainer | back to summary |
|---|---|
| private void attContainer(XSAttContainer cont) | |
| attGroupDecl | back to summary |
|---|---|
| public void attGroupDecl(XSAttGroupDecl decl) Implements com.
| |
| attributeDecl | back to summary |
|---|---|
| public void attributeDecl(XSAttributeDecl decl) Implements com.
| |
| attributeUse | back to summary |
|---|---|
| public void attributeUse(XSAttributeUse use) Implements com.
| |
| check | back to summary |
|---|---|
| private boolean check(XSComponent c) Checks unused customizations on this component and returns true if this is the first time this component is checked. | |
| check | back to summary |
|---|---|
| private void check(BIDeclaration decl, XSComponent c) | |
| checkExpectedContentTypes | back to summary |
|---|---|
| private void checkExpectedContentTypes(XSComponent c) | |
| complexType | back to summary |
|---|---|
| public void complexType(XSComplexType type) Implements com.
| |
| elementDecl | back to summary |
|---|---|
| public void elementDecl(XSElementDecl decl) Implements com.
| |
| empty | back to summary |
|---|---|
| public void empty(XSContentType empty) Implements com.
| |
| facet | back to summary |
|---|---|
| public void facet(XSFacet facet) Implements com.
| |
| identityConstraint | back to summary |
|---|---|
| public void identityConstraint(XSIdentityConstraint id) Implements com.
| |
| listSimpleType | back to summary |
|---|---|
| public void listSimpleType(XSListSimpleType type) Implements com.
| |
| modelGroup | back to summary |
|---|---|
| public void modelGroup(XSModelGroup group) Implements com.
| |
| modelGroupDecl | back to summary |
|---|---|
| public void modelGroupDecl(XSModelGroupDecl decl) Implements com.
| |
| notation | back to summary |
|---|---|
| public void notation(XSNotation notation) Implements com.
| |
| particle | back to summary |
|---|---|
| public void particle(XSParticle particle) Implements com.
| |
| restrictionSimpleType | back to summary |
|---|---|
| public void restrictionSimpleType(XSRestrictionSimpleType type) Implements com.
| |
| run | back to summary |
|---|---|
| pack-priv void run() Runs the check. | |
| run | back to summary |
|---|---|
| private void run(Map<String, ? extends XSComponent> col) | |
| schema | back to summary |
|---|---|
| public void schema(XSSchema schema) Implements com.
| |
| simpleType | back to summary |
|---|---|
| public void simpleType(XSSimpleType simpleType) Implements com.
| |
| unionSimpleType | back to summary |
|---|---|
| public void unionSimpleType(XSUnionSimpleType type) Implements com.
| |
| wildcard | back to summary |
|---|---|
| public void wildcard(XSWildcard wc) Implements com.
| |
| xpath | back to summary |
|---|---|
| public void xpath(XSXPath xp) Implements com.
| |