01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: /*
19: * Licensed to the Apache Software Foundation (ASF) under one or more
20: * contributor license agreements. See the NOTICE file distributed with
21: * this work for additional information regarding copyright ownership.
22: * The ASF licenses this file to You under the Apache License, Version 2.0
23: * (the "License"); you may not use this file except in compliance with
24: * the License. You may obtain a copy of the License at
25: *
26: * http://www.apache.org/licenses/LICENSE-2.0
27: *
28: * Unless required by applicable law or agreed to in writing, software
29: * distributed under the License is distributed on an "AS IS" BASIS,
30: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31: * See the License for the specific language governing permissions and
32: * limitations under the License.
33: *
34: */
35: package org.apache.lenya.xml;
36:
37: /**
38: * Validation schema.
39: */
40: public class Schema {
41:
42: /**
43: * Ctor.
44: * @param language The language, as defined by
45: * org.apache.cocoon.components.validation.Validator.
46: * @param schemaUri The schema URI.
47: * @see org.apache.cocoon.components.validation.Validator
48: */
49: public Schema(String language, String schemaUri) {
50: this .language = language;
51: this .uri = schemaUri;
52: }
53:
54: private String language;
55:
56: private String uri;
57:
58: /**
59: * @return The language.
60: * @see org.apache.cocoon.components.validation.Validator
61: */
62: public String getLanguage() {
63: return this .language;
64: }
65:
66: /**
67: * @return The URI to read the schema from.
68: */
69: public String getURI() {
70: return this.uri;
71: }
72:
73: }
|