KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > impl > SchemaAssignment


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

15 package org.apache.hivemind.impl;
16
17 import org.apache.hivemind.Location;
18
19 /**
20  * Helper class used during the processing of xml descriptors.
21  */

22 public class SchemaAssignment extends BaseLocatable
23 {
24     private String JavaDoc _configurationId;
25     private String JavaDoc _schemaId;
26     
27     public SchemaAssignment(String JavaDoc configurationId, String JavaDoc schemaId, Location location)
28     {
29         super(location);
30         _configurationId = configurationId;
31         _schemaId = schemaId;
32     }
33
34     /**
35      * Returns the id of the configuration the schema should be assigned to
36      */

37     public String JavaDoc getConfigurationId()
38     {
39         return _configurationId;
40     }
41
42     public void setConfigurationId(String JavaDoc string)
43     {
44         _configurationId = string;
45     }
46     
47     /**
48      * @return the id of the schema that should be assigned to a configuration point.
49      */

50     public String JavaDoc getSchemaId()
51     {
52         return _schemaId;
53     }
54
55     public void setSchemaId(String JavaDoc schemaId)
56     {
57         _schemaId = schemaId;
58     }
59
60 }
61
Popular Tags