All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.legstar.jaxb.converter.JaxbWrapper Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.legstar.jaxb.converter;

/**
 * A wrapper on a JAXB instance.
 * 

* Allows getting/setting the underlying JAXB instance properties using symbolic * field names or position (Order in which properties are declared in the JAXB * instance). * */ public abstract class JaxbWrapper { private final J jaxb; public JaxbWrapper(J jaxb) { this.jaxb = jaxb; } /** * Set the JAXB property with a new mainframe value. * * @param index the position of this field in its parent complex type * @param value the value to assign to that property * @param alternativeIndex when value is part of a choice, this gives the * index of the corresponding alternative (the one that was * selected) in the choice. -1 if this valu is not part of a * choice. */ public abstract void set(int index, Object value, int alternativeIndex); /** * Get the JAXB property value. * * @param index the position of this field in its parent complex type * @return the JAXB property value */ public abstract Object get(int index); public J getJaxb() { return jaxb; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy