KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > namespace > NamespaceRule


1 /*
2  * This file is subject to the licence found in LICENCE.TXT in the root directory of the project.
3  * Copyright Jayasoft 2005 - All rights reserved
4  *
5  * #SNAPSHOT#
6  */

7 package fr.jayasoft.ivy.namespace;
8
9 public class NamespaceRule {
10     private String JavaDoc _name;
11     private String JavaDoc _description;
12     
13     private MRIDTransformationRule _fromSystem;
14     private MRIDTransformationRule _toSystem;
15     
16     public MRIDTransformationRule getFromSystem() {
17         return _fromSystem;
18     }
19     public void addFromsystem(MRIDTransformationRule fromSystem) {
20         if (_fromSystem != null) {
21             throw new IllegalArgumentException JavaDoc("only one fromsystem is allowed per rule");
22         }
23         _fromSystem = fromSystem;
24     }
25     public MRIDTransformationRule getToSystem() {
26         return _toSystem;
27     }
28     public void addTosystem(MRIDTransformationRule toSystem) {
29         if (_toSystem != null) {
30             throw new IllegalArgumentException JavaDoc("only one tosystem is allowed per rule");
31         }
32         _toSystem = toSystem;
33     }
34     public String JavaDoc getDescription() {
35         return _description;
36     }
37     public void setDescription(String JavaDoc description) {
38         _description = description;
39     }
40     public String JavaDoc getName() {
41         return _name;
42     }
43     public void setName(String JavaDoc name) {
44         _name = name;
45     }
46 }
47
Popular Tags