Class XmlPatternAdapter
- java.lang.Object
-
- javax.xml.bind.annotation.adapters.XmlAdapter<String,Pattern>
-
- org.apache.turbine.services.urlmapper.model.XmlPatternAdapter
-
public class XmlPatternAdapter extends XmlAdapter<String,Pattern>
Creates Regex Pattern objects.- Author:
- Thomas Vandahl
-
-
Constructor Summary
Constructors Constructor Description XmlPatternAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmarshal(Pattern pattern)Patternunmarshal(String urlPattern)
-
-
-
Constructor Detail
-
XmlPatternAdapter
public XmlPatternAdapter()
-
-
Method Detail
-
unmarshal
public Pattern unmarshal(String urlPattern) throws Exception
- Specified by:
unmarshalin classXmlAdapter<String,Pattern>- Throws:
Exception- See Also:
XmlAdapter.unmarshal(java.lang.Object)
-
marshal
public String marshal(Pattern pattern) throws Exception
- Specified by:
marshalin classXmlAdapter<String,Pattern>- Throws:
Exception- See Also:
XmlAdapter.marshal(java.lang.Object)
-
-