public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results) { if (root instanceof ValidatorPair) { return ((ValidatorPair) root).doRemoveValidator(schema, results); } else { if (root.getSchema() == schema) { results[0] = root; results[1] = null; return true; } } return false; }
/** * Returns type of schema that was used to construct this * validator instance. * * @return One of external schema identifier values (such as * {@link XMLValidationSchema#SCHEMA_ID_DTD}). */ public String getSchemaType() { XMLValidationSchema sch = getSchema(); return (sch == null) ? null : sch.getSchemaType(); }
public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results) { if (root instanceof ValidatorPair) { return ((ValidatorPair) root).doRemoveValidator(schema, results); } else { if (root.getSchema() == schema) { results[0] = root; results[1] = null; return true; } } return false; }
/** * Returns type of schema that was used to construct this * validator instance. * * @return One of external schema identifier values (such as * {@link XMLValidationSchema#SCHEMA_ID_DTD}). */ public String getSchemaType() { XMLValidationSchema sch = getSchema(); return (sch == null) ? null : sch.getSchemaType(); }
/** * Returns type of schema that was used to construct this * validator instance. * * @return One of external schema identifier values (such as * {@link XMLValidationSchema#SCHEMA_ID_DTD}). */ public String getSchemaType() { XMLValidationSchema sch = getSchema(); return (sch == null) ? null : sch.getSchemaType(); }
/** * Returns type of schema that was used to construct this * validator instance. * * @return One of external schema identifier values (such as * {@link XMLValidationSchema#SCHEMA_ID_DTD}). */ public String getSchemaType() { XMLValidationSchema sch = getSchema(); return (sch == null) ? null : sch.getSchemaType(); }
public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results) { if (root instanceof ValidatorPair) { return ((ValidatorPair) root).doRemoveValidator(schema, results); } else { if (root.getSchema() == schema) { results[0] = root; results[1] = null; return true; } } return false; }
public static boolean removeValidator(XMLValidator root, XMLValidationSchema schema, XMLValidator[] results) { if (root instanceof ValidatorPair) { return ((ValidatorPair) root).doRemoveValidator(schema, results); } else { if (root.getSchema() == schema) { results[0] = root; results[1] = null; return true; } } return false; }