Lines Matching defs:is

15  * distributed under the License is distributed on an "AS IS" BASIS,
75 * This is Xerces DOM Builder class. It uses the abstract DOM
173 //Schema validation is false by default and hence there is no
174 //need to set it to false here. Also, schema validation is
219 // infoset parameter is true (its default value).
244 // REVISIT: by default Xerces assumes that input is certified.
245 // default is different from the one specified in the DOM spec
248 // Xerces datatype-normalization feature is on by default
249 // This is a recognized feature only for XML Schemas. If the
321 * element is the document element) or to terminate the parse early. If
322 * the document is being validated when it's loaded the validation
323 * happens before the filter is called.
334 * element is the document element) or to terminate the parse early. If
335 * the document is being validated when it's loaded the validation
336 * happens before the filter is called.
370 if (state) { // true is not supported
378 // setting those features to false is no-op
409 if (!state) { // false is not supported
417 // setting these features to true is no-op
613 // If this is a boolean parameter a type mismatch should be thrown.
627 // Parameter is not recognized
678 // REVISIT: This is somewhat expensive to compute
680 // to the configuration and is changing the values
783 // true is not supported
788 // false is not supported
910 * behavior is not defined by this specification.
915 //If DOMParser insstance is already busy parsing another document when this
916 // method is called, then raise INVALID_STATE_ERR according to DOM L3 LS spec
971 public Document parse (LSInput is) throws LSException {
974 XMLInputSource xmlInputSource = dom2xmlInputSource (is);
1035 * context node is used for resolving unbound namespace prefixes.
1037 * @param is The <code>LSInput</code> from which the source
1038 * document is to be read.
1039 * @param cnode The <code>Node</code> that is used as the context for
1040 * the data that is being parsed.
1043 * children of the context node. The set of possible actions is
1049 public Node parseWithContext (LSInput is, Node cnode,
1059 * @param is
1062 XMLInputSource dom2xmlInputSource (LSInput is) {
1065 // check whether there is a Reader
1067 if (is.getCharacterStream () != null) {
1068 xis = new XMLInputSource (is.getPublicId (), is.getSystemId (),
1069 is.getBaseURI (), is.getCharacterStream (),
1072 // check whether there is an InputStream
1073 else if (is.getByteStream () != null) {
1074 xis = new XMLInputSource (is.getPublicId (), is.getSystemId (),
1075 is.getBaseURI (), is.getByteStream (),
1076 is.getEncoding ());
1078 // if there is a string data, use a StringReader
1080 else if (is.getStringData () != null && is.getStringData().length() > 0) {
1081 xis = new XMLInputSource (is.getPublicId (), is.getSystemId (),
1082 is.getBaseURI (), new StringReader (is.getStringData ()),
1086 else if ((is.getSystemId() != null && is.getSystemId().length() > 0) ||
1087 (is.getPublicId() != null && is.getPublicId().length() > 0)) {
1088 xis = new XMLInputSource (is.getPublicId (), is.getSystemId (),
1089 is.getBaseURI ());
1123 // If parse operation is in progress then reset it
1141 return; // If not busy then this is noop
1157 // namespace declarations parameter has no effect if namespaces is false.