/** * Encode an AttributeType whose value type is a Boolean. * * @param attribute * @throws SAXException */ protected void encodeBoolean(AttributeDescriptor attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); atts.addAttribute("", "type", "type", "", "xs:boolean"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
/** * Encode an AttributeType whose value type is a Date. * * @param attribute * @throws SAXException */ protected void encodeDate(AttributeDescriptor attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); Class binding = attribute.getType().getBinding(); if (java.sql.Date.class.isAssignableFrom(binding)) atts.addAttribute("", "type", "type", "", "xs:date"); else if (java.sql.Time.class.isAssignableFrom(binding)) atts.addAttribute("", "type", "type", "", "xs:time"); else atts.addAttribute("", "type", "type", "", "xs:dateTime"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);
/** * Encode an AttributeType whose value type is a Date. * * @param attribute * * @throws SAXException */ protected void encodeDate(AttributeType attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); if(java.sql.Date.class.isAssignableFrom(attribute.getType())) atts.addAttribute("", "type", "type", "", "xs:date"); else if(java.sql.Time.class.isAssignableFrom(attribute.getType())) atts.addAttribute("", "type", "type", "", "xs:time"); else atts.addAttribute("", "type", "type", "", "xs:dateTime"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
/** * Encode an AttributeType whose value type is a Date. * * @param attribute * * @throws SAXException */ protected void encodeDate(AttributeDescriptor attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); Class binding = attribute.getType().getBinding(); if(java.sql.Date.class.isAssignableFrom(binding)) atts.addAttribute("", "type", "type", "", "xs:date"); else if(java.sql.Time.class.isAssignableFrom(binding)) atts.addAttribute("", "type", "type", "", "xs:time"); else atts.addAttribute("", "type", "type", "", "xs:dateTime"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
/** * Encode an AttributeType whose value type is a Boolean. * * @param attribute * * @throws SAXException */ protected void encodeBoolean(AttributeType attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); atts.addAttribute("", "type", "type", "", "xs:boolean"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
/** * Encode an AttributeType whose value type is a Boolean. * * @param attribute * * @throws SAXException */ protected void encodeBoolean(AttributeDescriptor attribute) throws SAXException { AttributesImpl atts = createStandardAttributes(attribute); atts.addAttribute("", "type", "type", "", "xs:boolean"); contentHandler.startElement(SCHEMA_NS, "element", "xs:element", atts); contentHandler.endElement(SCHEMA_NS, "element", "xs:element"); }
AttributesImpl atts = createStandardAttributes(attribute);
AttributesImpl atts = createStandardAttributes(attribute);