Class FieldAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<XmlField,Field<?>>
org.apache.fulcrum.intake.model.FieldAdapter

public class FieldAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<XmlField,Field<?>>
Creates Field objects.
Version:
$Id$
Author:
Thomas Vandahl
  • Constructor Details

    • FieldAdapter

      public FieldAdapter()
  • Method Details

    • unmarshal

      public Field<?> unmarshal(XmlField xmlField) throws Exception
      Creates a Field object appropriate for the type specified in the xml file.
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<XmlField,Field<?>>
      Throws:
      Exception
      See Also:
      • invalid reference
        javax.xml.bind.annotation.adapters.XmlAdapter#unmarshal(java.lang.Object)
    • marshal

      public XmlField marshal(Field<?> field) throws Exception
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<XmlField,Field<?>>
      Throws:
      Exception
      See Also:
      • invalid reference
        javax.xml.bind.annotation.adapters.XmlAdapter#marshal(java.lang.Object)