Example usage for javax.xml.bind.annotation.adapters XmlAdapter subclass-usage

List of usage examples for javax.xml.bind.annotation.adapters XmlAdapter subclass-usage

Introduction

In this page you can find the example usage for javax.xml.bind.annotation.adapters XmlAdapter subclass-usage.

Usage

From source file org.echocat.jomon.runtime.jaxb.LocaleAdapter.java

public class LocaleAdapter extends XmlAdapter<String, Locale> {

    @Override
    public Locale unmarshal(String v) throws Exception {
        final Locale result;
        if (v != null) {

From source file org.echocat.jomon.runtime.jaxb.PatternAdapter.java

public class PatternAdapter extends XmlAdapter<String, Pattern> {

    private static final Pattern EXTRACT_PATTERN = Pattern.compile("^/(.*)/([imsx]*)$");

    @Override
    public Pattern unmarshal(String v) throws Exception {

From source file org.eclipse.smila.connectivity.framework.schema.config.AttributeAdapter.java

/**
 * The Class AttributeAdapter.
 */
public class AttributeAdapter extends XmlAdapter<Object, IAttribute> {

    /** The Constant LOG. */

From source file org.eclipse.smila.connectivity.framework.schema.config.ProcessAdapter.java

/**
 * The Class ProcessAdapter.
 */
public class ProcessAdapter extends XmlAdapter<Object, IProcess> {

    /** The Constant LOG. */

From source file org.eclipse.smila.processing.configuration.PropertyAdapter.java

/**
 * The Class PropertyAdapter.
 */
class PropertyAdapter extends XmlAdapter<PipeletConfiguration.PropertySource, Property> {

    /** The Constant LOG. */

From source file org.eiichiro.bootleg.xml.ValueTypeXmlAdapter.java

/**
 * {@code ValueTypeXmlAdapter} is a custom XML marshaling adapter to convert 
 * user-defined value type object to XML value string representation.
 * If you want to marshal user-defined value type object to a single XML value 
 * string representation, annotate the type or field with 
 * {@code @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(ValueTypeXmlAdapter.class)}.

From source file org.kie.remote.jaxb.gen.util.JaxbUnknownAdapter.java

/**
 * Do not return an instance of Arrays.asList() -- that implementation is *not*
 * modifiable!
 *
 * See org.drools.core.xml.jaxb.util.JaxbUnknownAdapter
 *

From source file org.kuali.rice.core.util.jaxb.NameAndNamespacePairValidatingAdapter.java

/**
 * An XML adapter that simply validates the NameAndNamespacePair to ensure that the name and namespace are non-blank
 * and that the namespace code maps to a valid namespace in the system. This adapter will also pass the name to
 * a NormalizedStringAdapter instance for marshalling/unmarshalling.
 * 
 * @author Kuali Rice Team (rice.collab@kuali.org)

From source file org.kuali.rice.core.util.jaxb.StringToDateTimeAdapter.java

/**
 * An XML Adapter that relies on the DateTimeService to marshal and unmarshal datetime values in String form.
 * Converts Strings to java.util.Date instances and vice versa.
 * 
 * @author Kuali Rice Team (rice.collab@kuali.org)
 */

From source file org.kuali.rice.core.util.jaxb.StringTrimmingAdapter.java

/**
 * An XML adapter that simply performs a null-safe trim on the value to be marshalled or unmarshalled.
 * 
 * <p>Only use this adapter when it is necessary for the remaining whitespace-related characters to
 * remain as-is.
 *