Class SchemaDescriptionImpl
- java.lang.Object
-
- com.evolveum.midpoint.prism.AbstractFreezable
-
- com.evolveum.midpoint.prism.impl.schema.SchemaDescriptionImpl
-
- All Implemented Interfaces:
Freezable
,SchemaDescription
,DebugDumpable
public final class SchemaDescriptionImpl extends AbstractFreezable implements SchemaDescription
Schema (prism or non-prism) with additional information. TODO Make this class "initializable at once" i.e. that it would not need to be in semi-finished state e.g. during parsing.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canInputStream()
String
debugDump(int indent)
Package
getCompileTimeClassesPackage()
String
getDefaultPrefix()
Element
getDomElement()
String
getNamespace()
String
getPath()
PrismSchema
getSchema()
Source
getSource()
String
getSourceDescription()
String
getUsualPrefix()
boolean
isDeclaredByDefault()
boolean
isDefault()
boolean
isPrismSchema()
InputStream
openInputStream()
protected void
performFreeze()
void
setDefault(boolean isDefault)
void
setDefaultPrefix(String prefix)
void
setNamespace(String namespace)
void
setNode(Node node)
void
setSchema(PrismSchema schema)
String
toString()
-
Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezable
freeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable, freeze, isImmutable
-
-
-
-
Method Detail
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceSchemaDescription
- Returns:
- Path to schema source data (e.g. XSD file) - if known.
-
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interfaceSchemaDescription
- Returns:
- Namespace for elements in this schema.
-
setNamespace
public void setNamespace(String namespace)
-
setNode
public void setNode(Node node)
-
getUsualPrefix
public String getUsualPrefix()
- Specified by:
getUsualPrefix
in interfaceSchemaDescription
- Returns:
- Prefix that is usually used for this schema/namespace (e.g. "c" for common-3).
-
getSourceDescription
public String getSourceDescription()
- Specified by:
getSourceDescription
in interfaceSchemaDescription
-
isPrismSchema
public boolean isPrismSchema()
- Specified by:
isPrismSchema
in interfaceSchemaDescription
-
isDefault
public boolean isDefault()
- Specified by:
isDefault
in interfaceSchemaDescription
-
setDefault
public void setDefault(boolean isDefault)
-
isDeclaredByDefault
public boolean isDeclaredByDefault()
- Specified by:
isDeclaredByDefault
in interfaceSchemaDescription
- Returns:
- True if this prefix should be declared in XML files by default at the top of the file.
-
getSchema
public PrismSchema getSchema()
- Specified by:
getSchema
in interfaceSchemaDescription
-
setSchema
public void setSchema(PrismSchema schema)
-
getCompileTimeClassesPackage
public Package getCompileTimeClassesPackage()
- Specified by:
getCompileTimeClassesPackage
in interfaceSchemaDescription
-
canInputStream
public boolean canInputStream()
- Specified by:
canInputStream
in interfaceSchemaDescription
-
openInputStream
public InputStream openInputStream()
- Specified by:
openInputStream
in interfaceSchemaDescription
-
getSource
public Source getSource()
- Specified by:
getSource
in interfaceSchemaDescription
-
getDomElement
public Element getDomElement()
- Specified by:
getDomElement
in interfaceSchemaDescription
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
performFreeze
protected void performFreeze()
- Overrides:
performFreeze
in classAbstractFreezable
-
setDefaultPrefix
public void setDefaultPrefix(String prefix)
-
getDefaultPrefix
public String getDefaultPrefix()
-
-