/** * Sets whether the builders ignore comments. * * @param ignore The ignoreComments to set. */ public void setIgnoreComments(boolean ignore) { checkValidModifyState(); ignoreComments = ignore; }
/** * Sets whether the builders are XInclude aware. * * @param isXIncludeAware whether the builders are XInclude aware */ public void setXincludeAware(boolean isXIncludeAware) { checkValidModifyState(); xincludeAware = isXIncludeAware; }
/** * Sets whether the builders ignore element content whitespace. * * @param ignore whether the builders ignore element content whitespace */ public void setIgnoreElementContentWhitespace(boolean ignore) { checkValidModifyState(); ignoreElementContentWhitespace = ignore; }
/** * Sets the max number of builders the pool will hold. * * @param newSize max number of builders the pool will hold */ public void setMaxPoolSize(int newSize) { checkValidModifyState(); maxPoolSize = newSize; }
/** * Sets whether builders expand entity references. * * @param expand whether builders expand entity references */ public void setExpandEntityReferences(boolean expand) { checkValidModifyState(); expandEntityReferences = expand; }
/** * Sets the the builders' features. * * @param newFeatures the builders' features */ public void setBuilderFeatures(Map<String, Boolean> newFeatures) { checkValidModifyState(); builderFeatures = newFeatures; }
/** * Sets whether the builders are coalescing. * * @param isCoalescing whether the builders are coalescing */ public void setCoalescing(boolean isCoalescing) { checkValidModifyState(); coalescing = isCoalescing; }
/** * Sets whether the builders ignore element content whitespace. * * @param ignore whether the builders ignore element content whitespace */ public void setIgnoreElementContentWhitespace(boolean ignore) { checkValidModifyState(); ignoreElementContentWhitespace = ignore; }
/** * Sets whether the builders are validating. * * @param isValidating whether the builders are validating */ public void setDTDValidating(boolean isValidating) { checkValidModifyState(); dtdValidating = isValidating; }
/** * Sets whether the builders are coalescing. * * @param isCoalescing whether the builders are coalescing */ public void setCoalescing(boolean isCoalescing) { checkValidModifyState(); coalescing = isCoalescing; }
/** * Sets whether the builders are namespace aware. * * @param isNamespaceAware whether the builders are namespace aware */ public void setNamespaceAware(boolean isNamespaceAware) { checkValidModifyState(); namespaceAware = isNamespaceAware; }
/** * Sets whether the builders are validating. * * @param isValidating whether the builders are validating */ public void setDTDValidating(boolean isValidating) { checkValidModifyState(); dtdValidating = isValidating; }
/** * Sets the the builders' features. * * @param newFeatures the builders' features */ public void setBuilderFeatures(Map<String, Boolean> newFeatures) { checkValidModifyState(); builderFeatures = newFeatures; }
/** * Sets whether the builders ignore comments. * * @param ignore The ignoreComments to set. */ public void setIgnoreComments(boolean ignore) { checkValidModifyState(); ignoreComments = ignore; }
/** * Sets the builder attributes used when creating builders. * * @param newAttributes builder attributes used when creating builders */ public void setBuilderAttributes(Map<String, Object> newAttributes) { checkValidModifyState(); builderAttributes = newAttributes; }
/** * Sets whether the builders are namespace aware. * * @param isNamespaceAware whether the builders are namespace aware */ public void setNamespaceAware(boolean isNamespaceAware) { checkValidModifyState(); namespaceAware = isNamespaceAware; }
/** * Sets the max number of builders the pool will hold. * * @param newSize max number of builders the pool will hold */ public void setMaxPoolSize(int newSize) { checkValidModifyState(); maxPoolSize = newSize; }
/** * Sets whether builders expand entity references. * * @param expand whether builders expand entity references */ public void setExpandEntityReferences(boolean expand) { checkValidModifyState(); expandEntityReferences = expand; }
/** {@inheritDoc} */ public synchronized void setSchema(Schema newSchema) { // Note this method is synchronized because it is more than just an atomic assignment. // Don't want inconsistent data in the factory via initializeFactory(), also synchronized. checkValidModifyState(); schema = newSchema; if (schema != null) { setNamespaceAware(true); builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaSource"); builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaLanguage"); } }
/** {@inheritDoc} */ public synchronized void setSchema(Schema newSchema) { // Note this method is synchronized because it is more than just an atomic assignment. // Don't want inconsistent data in the factory via initializeFactory(), also synchronized. checkValidModifyState(); schema = newSchema; if (schema != null) { setNamespaceAware(true); builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaSource"); builderAttributes.remove("http://java.sun.com/xml/jaxp/properties/schemaLanguage"); } }