/** * Exports the given property as an <code>sv:property</code> element. */ protected void exportProperty( String uri, String local, int type, Value[] values) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(type)); addAttribute(SV, "multiple", Boolean.TRUE.toString()); startElement(SV, "property"); // values for (int i = 0; i < values.length; i++) { exportValue(values[i]); } endElement(SV, "property"); }
/** * Exports the given property as an <code>sv:property</code> element. */ protected void exportProperty( String uri, String local, int type, Value[] values) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(type)); addAttribute(SV, "multiple", Boolean.TRUE.toString()); startElement(SV, "property"); // values for (int i = 0; i < values.length; i++) { exportValue(values[i]); } endElement(SV, "property"); }
/** * Exports the given property as an <code>sv:property</code> element. */ protected void exportProperty( String uri, String local, int type, Value[] values) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(type)); addAttribute(SV, "multiple", Boolean.TRUE.toString()); startElement(SV, "property"); // values for (int i = 0; i < values.length; i++) { exportValue(values[i]); } endElement(SV, "property"); }
/** * Calls {@link #exportProperty(String, String, int, Value[])}. */ protected void exportProperty(String uri, String local, Value value) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(value.getType())); startElement(SV, "property"); // value exportValue(value); endElement(SV, "property"); }
/** * Calls {@link #exportProperty(String, String, int, Value[])}. */ protected void exportProperty(String uri, String local, Value value) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(value.getType())); startElement(SV, "property"); // value exportValue(value); endElement(SV, "property"); }
/** * Calls {@link #exportProperty(String, String, int, Value[])}. */ protected void exportProperty(String uri, String local, Value value) throws RepositoryException, SAXException { // start property element addAttribute(SV, "name", getXMLName(uri, local)); addAttribute(SV, "type", PropertyType.nameFromValue(value.getType())); startElement(SV, "property"); // value exportValue(value); endElement(SV, "property"); }