1 package com.terradue.jcatalogue.client.internal.digester;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.commons.digester3.AbstractObjectCreationFactory;
20 import org.xml.sax.Attributes;
21
22 import com.terradue.jcatalogue.client.OpenSearchUrl;
23
24 final class OpenSearchUrlCreationFactory
25 extends AbstractObjectCreationFactory<OpenSearchUrl>
26 {
27
28 @Override
29 public OpenSearchUrl createObject( Attributes attributes )
30 throws Exception
31 {
32 String type = attributes.getValue( "type" );
33 String template = attributes.getValue( "template" );
34
35 return new OpenSearchUrl( type, template );
36 }
37
38 }