net.sf.mmm.util.xml.base.jaxb
Class XmlAdapterPattern

java.lang.Object
  extended by javax.xml.bind.annotation.adapters.XmlAdapter<String,Pattern>
      extended by net.sf.mmm.util.xml.base.jaxb.XmlAdapterPattern
Direct Known Subclasses:
XmlAdapterInfixPattern

public class XmlAdapterPattern
extends javax.xml.bind.annotation.adapters.XmlAdapter<String,Pattern>

This is an implementation of XmlAdapter for mapping Pattern.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
XmlAdapterPattern()
          The constructor.
 
Method Summary
 String marshal(Pattern pattern)
          
 Pattern unmarshal(String pattern)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlAdapterPattern

public XmlAdapterPattern()
The constructor.

Method Detail

marshal

public String marshal(Pattern pattern)
               throws Exception

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

unmarshal

public Pattern unmarshal(String pattern)
                  throws Exception

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


Copyright © 2001-2010 mmm-Team. All Rights Reserved.