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