/** * The method corresponds to one transaction in the content model. * * @param elementName the qualified name of the element * @param currentState Current state * @param subGroupHandler the substitution group handler * @return element index corresponding to the element from the Schema grammar */ public Object oneTransition (QName elementName, int[] currentState, SubstitutionGroupHandler subGroupHandler, XSElementDeclHelper eDeclHelper){ // error state if (currentState[0] < 0) { currentState[0] = XSCMValidator.SUBSEQUENT_ERROR; return null; } if (fOpenContent != null) { if (allowExpandedName(fOpenContent.fWildcard, elementName, subGroupHandler, eDeclHelper)) { return fOpenContent; } } currentState[0] = XSCMValidator.FIRST_ERROR; return null; }
cmValidator = new XSEmptyCM(openContent);
private Boolean checkAllEmpty() { // If base (empty) has an open content, turn it into an "all". int[] idx = new int[]{-1}; if (base.nextWildcardTransition(b, bn, idx) != null) { base = new XS11AllCM(false, 0, null, ((XSEmptyCM)base).getOpenContent()); return null; } // Base allows nothing. Derived must be empty too. return Boolean.valueOf(derived.nextElementTransition(d, dn, idx) == null && derived.nextWildcardTransition(d, dn, idx) == null); }