private static XmlSchemaComplexType getRowNameBasedSchemaComplexType( XmlSchemaComplexType wrapperSchemaComplexType) { return (((XmlSchemaComplexType) ((XmlSchemaElement) ((XmlSchemaSequence) wrapperSchemaComplexType .getParticle()).getItems().getItem(0)).getSchemaType())); }
public Document[] getAllSchemas() { try { XmlSchemaSerializer xser = new XmlSchemaSerializer(); xser.setExtReg(this.parent.getExtReg()); return xser.serializeSchema(this, true); } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) { throw new XmlSchemaException(e.getMessage()); } }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }
private static String getResultRowName(XmlSchemaComplexType wrapperSchemaComplexType) { return ((XmlSchemaElement) ((XmlSchemaSequence) wrapperSchemaComplexType .getParticle()).getItems().getItem(0)).getName(); }
/** * Retrieve a DOM tree for this one schema, independent of any included or * related schemas. * @return The DOM document. * @throws XmlSchemaSerializerException */ public Document getSchemaDocument() throws XmlSchemaSerializerException { XmlSchemaSerializer xser = new XmlSchemaSerializer(); xser.setExtReg(this.parent.getExtReg()); return xser.serializeSchema(this, false)[0]; }
public void setSchema(XmlSchema schema) { this.schema = schema; isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED); isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED); }
public static boolean isElementNameQualified(XmlSchemaElement element, XmlSchema schema) { if (element.isRef()) { throw new RuntimeException("isElementNameQualified on element with ref="); } if (element.getForm().equals(XmlSchemaForm.QUALIFIED)) { return true; } if (element.getForm().equals(XmlSchemaForm.UNQUALIFIED)) { return false; } return schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED); }
public static boolean isAttributeNameQualified(XmlSchemaAttribute attribute, XmlSchema schema) { if (attribute.isRef()) { throw new RuntimeException("isElementNameQualified on element with ref="); } if (attribute.getForm().equals(XmlSchemaForm.QUALIFIED)) { return true; } if (attribute.getForm().equals(XmlSchemaForm.UNQUALIFIED)) { return false; } return schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED); }
private void addSimpleType(XmlSchema schema,String typeName){ XmlSchemaSimpleType type; type = new XmlSchemaSimpleType(schema); type.setName(typeName); schema.addType(type); } public XmlSchema read(Reader r, ValidationEventHandler veh) {
/** * Creates new XmlSchemaAttribute */ public XmlSchemaAttribute() { form = new XmlSchemaForm(XmlSchemaForm.NONE); use = new XmlSchemaUse(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaRedefine */ public XmlSchemaRedefine() { items = new XmlSchemaObjectCollection(); schemaTypes = new XmlSchemaObjectTable(); groups = new XmlSchemaObjectTable(); attributeGroups = new XmlSchemaObjectTable(); }
/** * Creates new XmlSchemaComplexType */ public XmlSchemaComplexType(XmlSchema schema) { super(schema); attributes = new XmlSchemaObjectCollection(); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); isAbstract = false; isMixed = false; }
public Document[] getAllSchemas() { try { XmlSchemaSerializer xser = new XmlSchemaSerializer(); xser.setExtReg(this.parent.getExtReg()); return xser.serializeSchema(this, true); } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) { throw new XmlSchemaException(e.getMessage()); } }
public void setSchema(XmlSchema schema) { this.schema = schema; isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED); isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED); }
public static boolean isAttributeNameQualified(XmlSchemaAttribute attribute, XmlSchema schema) { if (attribute.isRef()) { throw new RuntimeException("isElementNameQualified on element with ref="); } if (attribute.getForm().equals(XmlSchemaForm.QUALIFIED)) { return true; } if (attribute.getForm().equals(XmlSchemaForm.UNQUALIFIED)) { return false; } return schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED); }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }
/** * Creates new XmlSchemaRedefine */ public XmlSchemaRedefine() { items = new XmlSchemaObjectCollection(); schemaTypes = new XmlSchemaObjectTable(); groups = new XmlSchemaObjectTable(); attributeGroups = new XmlSchemaObjectTable(); }
public Document[] getAllSchemas() { try { XmlSchemaSerializer xser = new XmlSchemaSerializer(); xser.setExtReg(this.parent.getExtReg()); return xser.serializeSchema(this, true); } catch (XmlSchemaSerializer.XmlSchemaSerializerException e) { throw new XmlSchemaException(e.getMessage()); } }
public void setSchema(XmlSchema schema) { this.schema = schema; isElementQualified = schema.getElementFormDefault().equals(XmlSchemaForm.QUALIFIED); isAttributeQualified = schema.getAttributeFormDefault().equals(XmlSchemaForm.QUALIFIED); }
/** * Creates new XmlSchemaElement */ public XmlSchemaElement() { constraints = new XmlSchemaObjectCollection(); isAbstract = false; isNillable = false; form = new XmlSchemaForm(XmlSchemaForm.NONE); finalDerivation = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); block = new XmlSchemaDerivationMethod(Constants.BlockConstants.NONE); }