KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > wsmgmt > config > impl > TransformationRuleImpl


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 package com.sun.enterprise.admin.wsmgmt.config.impl;
24
25 import com.sun.enterprise.admin.wsmgmt.config.spi.TransformationRule;
26
27 /**
28  * This represents transformation rule for a web service end point.
29  */

30 public class TransformationRuleImpl implements TransformationRule {
31
32     public TransformationRuleImpl(String JavaDoc n, boolean enable, String JavaDoc apply,
33                     String JavaDoc loc) {
34         name = n;
35         enabled = enable;
36         applyTo = apply;
37         fileLoc = loc;
38     }
39
40     public TransformationRuleImpl(
41             com.sun.enterprise.config.serverbeans.TransformationRule tRule) {
42
43         name = tRule.getName();
44         enabled = tRule.isEnabled();
45         applyTo = tRule.getApplyTo();
46         fileLoc = tRule.getRuleFileLocation();
47     }
48
49     /**
50      * Returns the name of the transformation rule
51      *
52      * @return the name of the transformation rule
53      */

54     public String JavaDoc getName() {
55         return name;
56     }
57
58     /**
59      * Returns true, if this transformation rule is enabled
60      *
61      * @return true, if this transformation rule is enabled
62      */

63     public boolean getEnabled() {
64         return enabled;
65     }
66     
67     /**
68      * Returns the value of "Apply-to" attribute
69      *
70      * @return the value of "Apply-to" attribute
71      */

72     public String JavaDoc getApplyTo() {
73         return applyTo;
74     }
75
76     /**
77      * Returns the location of rule file
78      *
79      * @return the location of rule file
80      */

81     public String JavaDoc getRuleFileLocation() {
82         return fileLoc;
83     }
84
85
86     // PRIVATE VARIABLES
87
String JavaDoc name = null, applyTo = null, fileLoc = null;
88     boolean enabled = false;
89 }
90
Popular Tags