KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > validator > DefaultValidator


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.juddi.validator;
17
18 import org.apache.commons.logging.Log;
19 import org.apache.commons.logging.LogFactory;
20 import org.apache.juddi.datatype.CategoryBag;
21 import org.apache.juddi.datatype.IdentifierBag;
22 import org.apache.juddi.datatype.KeyedReference;
23 import org.apache.juddi.error.RegistryException;
24
25 /**
26  * This is a simple implementation of jUDDI's Validation interface.
27  *
28  * @author Steve Viens (sviens@apache.org)
29  */

30 public class DefaultValidator implements Validator
31 {
32   // private reference to the jUDDI logger
33
private static Log log = LogFactory.getLog(DefaultValidator.class);
34
35   /**
36    *
37    */

38   public DefaultValidator()
39   {
40   }
41
42   /**
43    *
44    */

45   public boolean validate(CategoryBag bag)
46     throws RegistryException
47   {
48     return true;
49   }
50
51   /**
52    *
53    */

54   public boolean validate(IdentifierBag bag)
55     throws RegistryException
56   {
57     return true;
58   }
59
60   /**
61    *
62    */

63   public boolean validate(KeyedReference ref)
64     throws RegistryException
65   {
66     return true;
67   }
68
69
70   /***************************************************************************/
71   /***************************** TEST DRIVER *********************************/
72   /***************************************************************************/
73
74
75   public static void main(String JavaDoc[] args)
76     throws Exception JavaDoc
77   {
78     Validator validation = new DefaultValidator();
79   }
80 }
Popular Tags