136 *
137 * <p>
138 * This operation is expected to be only used in schema generator, so it can be slow.
139 *
140 * @return
141 * A map from prefixes to namespace URIs, which should be declared when generating a schema.
142 * Could be empty but never null.
143 */
144 Map<String,String> getXmlNs(String namespaceUri);
145
146 /**
147 * Gets {@link XmlSchema#location()} found in this context.
148 *
149 * <p>
150 * This operation is expected to be only used in schema generator, so it can be slow.
151 *
152 * @return
153 * A map from namespace URI to the value of the location.
154 * If the entry is missing, that means a schema should be generated for that namespace.
155 * If the value is "", that means the schema location is implied
156 * (<xs:schema namespace="..."/> w/o schemaLocation.)
157 */
158 Map<String,String> getSchemaLocations();
159
160 /**
161 * Gets the reasonable {@link XmlNsForm} for the given namespace URI.
162 *
163 * <p>
164 * The spec doesn't define very precisely what the {@link XmlNsForm} value
165 * for the given namespace would be, so this method is implemented in rather
166 * ad-hoc way. It should work as what most people expect for simple cases.
167 *
168 * @return never null.
169 */
170 XmlNsForm getElementFormDefault(String nsUri);
171
172 /**
173 * Gets the reasonable {@link XmlNsForm} for the given namespace URI.
174 *
175 * <p>
176 * The spec doesn't define very precisely what the {@link XmlNsForm} value
|
136 *
137 * <p>
138 * This operation is expected to be only used in schema generator, so it can be slow.
139 *
140 * @return
141 * A map from prefixes to namespace URIs, which should be declared when generating a schema.
142 * Could be empty but never null.
143 */
144 Map<String,String> getXmlNs(String namespaceUri);
145
146 /**
147 * Gets {@link XmlSchema#location()} found in this context.
148 *
149 * <p>
150 * This operation is expected to be only used in schema generator, so it can be slow.
151 *
152 * @return
153 * A map from namespace URI to the value of the location.
154 * If the entry is missing, that means a schema should be generated for that namespace.
155 * If the value is "", that means the schema location is implied
156 * ({@code <xs:schema namespace="..."/>} w/o schemaLocation.)
157 */
158 Map<String,String> getSchemaLocations();
159
160 /**
161 * Gets the reasonable {@link XmlNsForm} for the given namespace URI.
162 *
163 * <p>
164 * The spec doesn't define very precisely what the {@link XmlNsForm} value
165 * for the given namespace would be, so this method is implemented in rather
166 * ad-hoc way. It should work as what most people expect for simple cases.
167 *
168 * @return never null.
169 */
170 XmlNsForm getElementFormDefault(String nsUri);
171
172 /**
173 * Gets the reasonable {@link XmlNsForm} for the given namespace URI.
174 *
175 * <p>
176 * The spec doesn't define very precisely what the {@link XmlNsForm} value
|