org.opennms.core.xml.bind
Class InetAddressXmlAdapter

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,InetAddress>
      extended by org.opennms.core.xml.bind.InetAddressXmlAdapter

public class InetAddressXmlAdapter
extends javax.xml.bind.annotation.adapters.XmlAdapter<String,InetAddress>

InetAddresssXmlAdapter

Version:
$Id: $
Author:
brozow

Constructor Summary
InetAddressXmlAdapter()
           
 
Method Summary
 String marshal(InetAddress inetAddr)
          
 InetAddress unmarshal(String ipAddr)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InetAddressXmlAdapter

public InetAddressXmlAdapter()
Method Detail

marshal

public String marshal(InetAddress inetAddr)
               throws Exception

Specified by:
marshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,InetAddress>
Throws:
Exception

unmarshal

public InetAddress unmarshal(String ipAddr)
                      throws Exception

Specified by:
unmarshal in class javax.xml.bind.annotation.adapters.XmlAdapter<String,InetAddress>
Throws:
Exception


Copyright © 2011. All Rights Reserved.