/** * Creates a new Schema based on the namespaces of the specified Configuration. * @param config the Configuration * @return the new Schema * @see #getSchema(Set) */ public Schema getSchema(Configuration config) { if (config != null) { return getSchema(config.getChildrenNamespaces()); } return null; }
/** * Creates a Validator based on the combined schema documents/definitions found that are associated with the specified namespace. * @param namespaces the namespaces of the schemas * @return the new Validator */ public Validator getValidator(Set<String> namespaces) { return getValidator(getSchema(namespaces)); }
/** * Creates a new Schema based on the namespaces of the specified Configuration. * @param config the Configuration * @return the new Schema * @see #getSchema(Set) */ public Schema getSchema(Configuration config) { if (config != null) { return getSchema(config.getChildrenNamespaces()); } return null; }
/** * Creates a Validator based on the combined schema documents/definitions found that are associated with the specified namespace. * @param namespaces the namespaces of the schemas * @return the new Validator */ public Validator getValidator(Set<String> namespaces) { return getValidator(getSchema(namespaces)); }
/** * Creates a new Validator based on the namespaces of the Configuration wrapped by the specified Model. * @param model the Model * @return the new Validator * @see #getValidator(Configuration) * @see #getValidator(Set) */ public Validator getValidator(Model model) { return getValidator(getSchema(model)); }
/** * Creates a new Validator based on the namespaces of the specified Configuration. * @param config the Configuration * @return the new Validator * @see #getValidator(Set) */ public Validator getValidator(Configuration config) { return getValidator(getSchema(config)); }
/** * Creates a new Validator based on the namespaces of the Configuration wrapped by the specified Model. * @param model the Model * @return the new Validator * @see #getValidator(Configuration) * @see #getValidator(Set) */ public Validator getValidator(Model model) { return getValidator(getSchema(model)); }
/** * Creates a new Validator based on the namespaces of the specified Configuration. * @param config the Configuration * @return the new Validator * @see #getValidator(Set) */ public Validator getValidator(Configuration config) { return getValidator(getSchema(config)); }
/** * Creates a new Schema based on the namespaces of the Configuration wrapped by the specified Model. * @param model the Model * @return the new Schema * @see #getSchema(Configuration) * @see #getSchema(Set) */ public static Schema getSchema(Model model) { if (model != null) { Descriptor desc = model.getModelDescriptor(); if (desc != null) { return desc.getSchema(model.getModelConfiguration()); } } return null; }
/** * Creates a new Schema based on the namespaces of the Configuration wrapped by the specified Model. * @param model the Model * @return the new Schema * @see #getSchema(Configuration) * @see #getSchema(Set) */ public static Schema getSchema(Model model) { if (model != null) { Descriptor desc = model.getModelDescriptor(); if (desc != null) { return desc.getSchema(model.getModelConfiguration()); } } return null; }