Package org.kuali.rice.core.util.jaxb
Class NameAndNamespacePairValidatingAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>
-
- org.kuali.rice.core.util.jaxb.NameAndNamespacePairValidatingAdapter
-
public class NameAndNamespacePairValidatingAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>
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)
-
-
Constructor Summary
Constructors Constructor Description NameAndNamespacePairValidatingAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameAndNamespacePairmarshal(NameAndNamespacePair v)NameAndNamespacePairunmarshal(NameAndNamespacePair v)
-
-
-
Method Detail
-
unmarshal
public NameAndNamespacePair unmarshal(NameAndNamespacePair v) throws Exception
- Specified by:
unmarshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>- Throws:
Exception- See Also:
XmlAdapter.unmarshal(java.lang.Object)
-
marshal
public NameAndNamespacePair marshal(NameAndNamespacePair v) throws Exception
- Specified by:
marshalin classjavax.xml.bind.annotation.adapters.XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>- Throws:
Exception- See Also:
XmlAdapter.marshal(java.lang.Object)
-
-