@Override public Object getProperty(String propName) throws PropertyException { if (null == propName) { throw new IllegalArgumentException(); } if (propName.equals(Marshaller.JAXB_ENCODING)) { return this.xmlBinder.getMarshaller().getEncoding(); } if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) { return this.xmlBinder.getMarshaller().isFormattedOutput(); } if (propName.equals(Marshaller.JAXB_FRAGMENT)) { return this.xmlBinder.getMarshaller().isFragment(); } if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) { return this.xmlBinder.getMarshaller().getSchemaLocation(); } if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) { return this.xmlBinder.getMarshaller().getNoNamespaceSchemaLocation(); } throw new PropertyException(propName); }
public Object getProperty(String propName) throws PropertyException { if (null == propName) { throw new IllegalArgumentException(); } if (propName.equals(Marshaller.JAXB_ENCODING)) { return this.xmlBinder.getMarshaller().getEncoding(); } if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) { return this.xmlBinder.getMarshaller().isFormattedOutput(); } if (propName.equals(Marshaller.JAXB_FRAGMENT)) { return this.xmlBinder.getMarshaller().isFragment(); } if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) { return this.xmlBinder.getMarshaller().getSchemaLocation(); } if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) { return this.xmlBinder.getMarshaller().getNoNamespaceSchemaLocation(); } throw new PropertyException(propName); }
public void setProperty(String propName, Object value) throws PropertyException { if (null == propName) { throw new IllegalArgumentException(propName); } String valueString = (value == null) ? null : value.toString(); if (propName.equals(Marshaller.JAXB_ENCODING)) { this.xmlBinder.getMarshaller().setEncoding(valueString); return; } if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) { this.xmlBinder.getMarshaller().setFormattedOutput(Boolean.valueOf(valueString).booleanValue()); return; } if (propName.equals(Marshaller.JAXB_FRAGMENT)) { this.xmlBinder.getMarshaller().setFragment(Boolean.valueOf(valueString).booleanValue()); return; } if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) { this.xmlBinder.getMarshaller().setSchemaLocation(valueString); return; } if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) { this.xmlBinder.getMarshaller().setNoNamespaceSchemaLocation(valueString); return; } throw new PropertyException(propName); }
@Override public void setProperty(String propName, Object value) throws PropertyException { if (null == propName) { throw new IllegalArgumentException((String)null); } String valueString = (value == null) ? null : value.toString(); if (propName.equals(Marshaller.JAXB_ENCODING)) { this.xmlBinder.getMarshaller().setEncoding(valueString); return; } if (propName.equals(Marshaller.JAXB_FORMATTED_OUTPUT)) { this.xmlBinder.getMarshaller().setFormattedOutput(Boolean.valueOf(valueString).booleanValue()); return; } if (propName.equals(Marshaller.JAXB_FRAGMENT)) { this.xmlBinder.getMarshaller().setFragment(Boolean.valueOf(valueString).booleanValue()); return; } if (propName.equals(Marshaller.JAXB_SCHEMA_LOCATION)) { this.xmlBinder.getMarshaller().setSchemaLocation(valueString); return; } if (propName.equals(Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION)) { this.xmlBinder.getMarshaller().setNoNamespaceSchemaLocation(valueString); return; } throw new PropertyException(propName); }
Descriptor desc = (Descriptor) xmlBinder.getMarshaller().getXMLContext().getSession().getClassDescriptor(updatedObj);
Descriptor desc = (Descriptor) xmlBinder.getMarshaller().getXMLContext().getSession().getClassDescriptor(updatedObj);