public void startDocumentFragment(){ super.startDocumentFragment(); fElementDepth = 0; fMatchedDepth = -1; } // startDocumentFragment()
private void activateSelectorFor(IdentityConstraint ic) { Selector selector = ic.getSelector(); FieldActivator activator = this; if (selector == null) return; XPathMatcher matcher = selector.createMatcher(activator, fElementDepth); if (fSchemaVersion == Constants.SCHEMA_VERSION_1_1) { matcher.setXPathDefaultNamespace(selector.getXPathDefaultNamespace()); } fMatcherStack.addMatcher(matcher); matcher.startDocumentFragment(); }
/** * Request to activate the specified field. This method returns the * matcher for the field. * * @param field The field to activate. */ public XPathMatcher activateField(Field field, int initialDepth) { ValueStore valueStore = fValueStoreCache.getValueStoreFor(field.getIdentityConstraint(), initialDepth); XPathMatcher matcher = field.createMatcher(valueStore); if (fSchemaVersion == Constants.SCHEMA_VERSION_1_1) { matcher.setXPathDefaultNamespace(field.getXPathDefaultNamespace()); } fMatcherStack.addMatcher(matcher); matcher.startDocumentFragment(); return matcher; } // activateField(Field):XPathMatcher