/
SchemaDescription.java
53 lines (38 loc) · 1.21 KB
/
SchemaDescription.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright (c) 2010-2018 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.prism.schema;
import com.evolveum.midpoint.prism.Freezable;
import com.evolveum.midpoint.util.DebugDumpable;
import java.io.InputStream;
/**
* Schema (prism or non-prism) with additional information.
*/
public interface SchemaDescription extends DebugDumpable, Freezable {
/**
* @return Path to schema source data (e.g. XSD file) - if known.
*/
String getPath();
/**
* @return Namespace for elements in this schema.
*/
String getNamespace();
/**
* @return Prefix that is usually used for this schema/namespace (e.g. "c" for common-3).
*/
String getUsualPrefix();
/**
* @return True if this prefix should be declared in XML files by default at the top of the file.
*/
boolean isDeclaredByDefault();
boolean isDefault();
String getSourceDescription();
boolean isPrismSchema();
PrismSchema getSchema();
Package getCompileTimeClassesPackage();
boolean canInputStream();
InputStream openInputStream();
}