org.kuali.rice.core.util.jaxb
Class NameAndNamespacePairValidatingAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>
      extended by org.kuali.rice.core.util.jaxb.NameAndNamespacePairValidatingAdapter

public class NameAndNamespacePairValidatingAdapter
extends 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
NameAndNamespacePairValidatingAdapter()
           
 
Method Summary
 NameAndNamespacePair marshal(NameAndNamespacePair v)
           
 NameAndNamespacePair unmarshal(NameAndNamespacePair v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameAndNamespacePairValidatingAdapter

public NameAndNamespacePairValidatingAdapter()
Method Detail

unmarshal

public NameAndNamespacePair unmarshal(NameAndNamespacePair v)
                               throws Exception
Specified by:
unmarshal in class XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>
Throws:
Exception
See Also:
XmlAdapter.unmarshal(java.lang.Object)

marshal

public NameAndNamespacePair marshal(NameAndNamespacePair v)
                             throws Exception
Specified by:
marshal in class XmlAdapter<NameAndNamespacePair,NameAndNamespacePair>
Throws:
Exception
See Also:
XmlAdapter.marshal(java.lang.Object)


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.