/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. *<p> * It's unlikely there will be default values... but just in case, * let's implement it properly. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultNames(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called to do initial normalization of the default attribute * value, without trying to verify its validity. Thus, it's * called independent of whether we are fully validating the document. */ public void normalizeDefault() { String val = mDefValue.getValue(); if (val.length() > 0) { char[] cbuf = val.toCharArray(); String str = StringUtil.normalizeSpaces(cbuf, 0, cbuf.length); if (str != null) { mDefValue.setValue(str); } } }
mDefValue.setValue(normStr);
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultNmToken(rep, normalize); // And then that it's one of listed values: String shared = mEnumValues.find(def); if (shared == null) { reportValidationProblem(rep, "Invalid default value '"+def+"': has to be one of (" +mEnumValues+")"); return; } // Ok, cool it's ok... if (normalize) { mDefValue.setValue(shared); } } }
/** * Method called by the validator object * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String normStr = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(normStr); } // Ok, but was it declared? /* 03-Dec-2004, TSa: This is rather ugly -- need to know we * actually really get a DTD reader, and DTD reader needs * to expose a special method... but it gets things done. */ EntityDecl ent = ((MinimalDTDReader) rep).findEntity(normStr); checkEntity(rep, normStr, ent); } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { // First, basic checks that it's a valid non-empty name: String def = validateDefaultName(rep, normalize); // And then that it's one of listed values: String shared = mEnumValues.find(def); if (shared == null) { reportValidationProblem(rep, "Invalid default value '"+def+"': has to be one of (" +mEnumValues+")"); } // Ok, cool it's ok... if (normalize) { mDefValue.setValue(shared); } } }
mDefValue.setValue(sb.toString());
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLValidationException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ @Override public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultNmToken(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
/** * Method called by the validator * to ask attribute to verify that the default it has (if any) is * valid for such type. */ @Override public void validateDefault(InputProblemReporter rep, boolean normalize) throws XMLStreamException { String def = validateDefaultName(rep, normalize); if (normalize) { mDefValue.setValue(def); } } }
defVal.setValue(tb.contentsAsString()); mValueBuffer = tb;