OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [gnu/] [xml/] [validation/] [xmlschema/] [XMLSchema.java] - Blame information for rev 769

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 769 jeremybenn
/* XMLSchema.java --
2
   Copyright (C) 2006  Free Software Foundation, Inc.
3
 
4
This file is part of GNU Classpath.
5
 
6
GNU Classpath is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2, or (at your option)
9
any later version.
10
 
11
GNU Classpath is distributed in the hope that it will be useful, but
12
WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with GNU Classpath; see the file COPYING.  If not, write to the
18
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
02110-1301 USA.
20
 
21
Linking this library statically or dynamically with other modules is
22
making a combined work based on this library.  Thus, the terms and
23
conditions of the GNU General Public License cover the whole
24
combination.
25
 
26
As a special exception, the copyright holders of this library give you
27
permission to link this library with independent modules to produce an
28
executable, regardless of the license terms of these independent
29
modules, and to copy and distribute the resulting executable under
30
terms of your choice, provided that you also meet, for each linked
31
independent module, the terms and conditions of the license of that
32
module.  An independent module is a module which is not derived from
33
or based on this library.  If you modify this library, you may extend
34
this exception to your version of the library, but you are not
35
obligated to do so.  If you do not wish to do so, delete this
36
exception statement from your version. */
37
 
38
package gnu.xml.validation.xmlschema;
39
 
40
import java.util.LinkedHashMap;
41
import java.util.Map;
42
import javax.xml.validation.Schema;
43
import javax.xml.validation.Validator;
44
import javax.xml.validation.ValidatorHandler;
45
 
46
/**
47
 * An XML Schema schema.
48
 *
49
 * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
50
 */
51
final class XMLSchema
52
  extends Schema
53
{
54
 
55
  static final int FINAL_NONE = 0x00;
56
  static final int FINAL_EXTENSION = 0x01;
57
  static final int FINAL_RESTRICTION = 0x02;
58
  static final int FINAL_LIST = 0x04;
59
  static final int FINAL_UNION = 0x08;
60
  static final int FINAL_ALL = 0x0f;
61
 
62
  static final int BLOCK_NONE = 0x00;
63
  static final int BLOCK_EXTENSION = 0x01;
64
  static final int BLOCK_RESTRICTION = 0x02;
65
  static final int BLOCK_SUBSTITUTION = 0x04;
66
  static final int BLOCK_ALL = 0x07;
67
 
68
  static final int GLOBAL = 0x00;
69
  static final int LOCAL = 0x01;
70
  static final int ABSENT = 0x02;
71
 
72
  static final int CONSTRAINT_NONE = 0x00;
73
  static final int CONSTRAINT_DEFAULT = 0x01;
74
  static final int CONSTRAINT_FIXED = 0x02;
75
 
76
  static final int CONTENT_EMPTY = 0x00;
77
  static final int CONTENT_SIMPLE = 0x01;
78
  static final int CONTENT_MIXED = 0x02;
79
  static final int CONTENT_ELEMENT_ONLY = 0x03;
80
 
81
  final String targetNamespace;
82
  final String version;
83
  final int finalDefault;
84
  final int blockDefault;
85
  final boolean attributeFormQualified;
86
  final boolean elementFormQualified;
87
 
88
  /**
89
   * The element declarations in this schema.
90
   */
91
  final Map elementDeclarations;
92
 
93
  /**
94
   * The attribute declarations in this schema.
95
   */
96
  final Map attributeDeclarations;
97
 
98
  /**
99
   * The type declarations in this schema.
100
   */
101
  final Map types;
102
 
103
  XMLSchema(String targetNamespace, String version,
104
            int finalDefault, int blockDefault,
105
            boolean attributeFormQualified,
106
            boolean elementFormQualified)
107
  {
108
    this.targetNamespace = targetNamespace;
109
    this.version = version;
110
    this.finalDefault = finalDefault;
111
    this.blockDefault = blockDefault;
112
    this.attributeFormQualified = attributeFormQualified;
113
    this.elementFormQualified = elementFormQualified;
114
    elementDeclarations = new LinkedHashMap();
115
    attributeDeclarations = new LinkedHashMap();
116
    types = new LinkedHashMap();
117
  }
118
 
119
  public Validator newValidator()
120
  {
121
    // TODO
122
    //return new XMLSchemaValidator(this);
123
    return null;
124
  }
125
 
126
  public ValidatorHandler newValidatorHandler()
127
  {
128
    // TODO
129
    //return new XMLSchemaValidatorHandler(this);
130
    return null;
131
  }
132
 
133
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.