KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > config > serverbeans > validation > ValidationDescriptor


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.config.serverbeans.validation;
25
26 import java.util.Vector JavaDoc;
27
28 /**
29  * Class which contains all the descriptor information for a particular element in a object used
30  * used by GenericValidator
31
32     @author Srinivas Krishnan
33     @version 2.0
34 */

35
36 public class ValidationDescriptor {
37   
38     String JavaDoc elementName;
39     String JavaDoc xPath;
40     String JavaDoc customValidatorClass;
41     String JavaDoc key;
42     Vector JavaDoc attrType;
43     DomainMgr domainMgr;
44     String JavaDoc[] requiredChildren;
45     String JavaDoc[] exclusiveChildren;
46     
47     public ValidationDescriptor(DomainMgr domainMgr, String JavaDoc elementName,
48             String JavaDoc xPath, String JavaDoc customValidatorClass,
49             String JavaDoc key, Vector JavaDoc attrType,
50             String JavaDoc[] required_children, String JavaDoc[] exclusive_children) {
51         this.domainMgr = domainMgr;
52         this.elementName = elementName;
53         this.xPath = xPath;
54         this.customValidatorClass = customValidatorClass;
55         this.key = key;
56         this.attrType = attrType;
57         this.requiredChildren = required_children;
58         this.exclusiveChildren = exclusive_children;
59     }
60     
61     public String JavaDoc getElementName() {
62         return elementName;
63     }
64     
65     public String JavaDoc getXPath() {
66         return xPath;
67     }
68     
69     public String JavaDoc getCustomValidatorClass() {
70         return customValidatorClass;
71     }
72     
73     public String JavaDoc getKey() {
74         return key;
75     }
76     public Vector JavaDoc getAttributes() {
77         return attrType;
78     }
79
80     public String JavaDoc[] getRequiredChildren() {
81         return requiredChildren;
82     }
83
84     public String JavaDoc[] getExclusiveChildren() {
85         return exclusiveChildren;
86     }
87     
88     public DomainMgr getDomainMgr() {
89         return domainMgr;
90     }
91 }
92
Popular Tags