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 booleancanInputStream()StringdebugDump(int indent)PackagegetCompileTimeClassesPackage()StringgetDefaultPrefix()ElementgetDomElement()StringgetNamespace()StringgetPath()PrismSchemagetSchema()SourcegetSource()StringgetSourceDescription()StringgetUsualPrefix()booleanisDeclaredByDefault()booleanisDefault()booleanisPrismSchema()InputStreamopenInputStream()protected voidperformFreeze()voidsetDefault(boolean isDefault)voidsetDefaultPrefix(String prefix)voidsetNamespace(String namespace)voidsetNode(Node node)voidsetSchema(PrismSchema schema)StringtoString()-
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:
getPathin interfaceSchemaDescription- Returns:
- Path to schema source data (e.g. XSD file) - if known.
-
getNamespace
public String getNamespace()
- Specified by:
getNamespacein 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:
getUsualPrefixin interfaceSchemaDescription- Returns:
- Prefix that is usually used for this schema/namespace (e.g. "c" for common-3).
-
getSourceDescription
public String getSourceDescription()
- Specified by:
getSourceDescriptionin interfaceSchemaDescription
-
isPrismSchema
public boolean isPrismSchema()
- Specified by:
isPrismSchemain interfaceSchemaDescription
-
isDefault
public boolean isDefault()
- Specified by:
isDefaultin interfaceSchemaDescription
-
setDefault
public void setDefault(boolean isDefault)
-
isDeclaredByDefault
public boolean isDeclaredByDefault()
- Specified by:
isDeclaredByDefaultin 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:
getSchemain interfaceSchemaDescription
-
setSchema
public void setSchema(PrismSchema schema)
-
getCompileTimeClassesPackage
public Package getCompileTimeClassesPackage()
- Specified by:
getCompileTimeClassesPackagein interfaceSchemaDescription
-
canInputStream
public boolean canInputStream()
- Specified by:
canInputStreamin interfaceSchemaDescription
-
openInputStream
public InputStream openInputStream()
- Specified by:
openInputStreamin interfaceSchemaDescription
-
getSource
public Source getSource()
- Specified by:
getSourcein interfaceSchemaDescription
-
getDomElement
public Element getDomElement()
- Specified by:
getDomElementin interfaceSchemaDescription
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDumpin interfaceDebugDumpable
-
performFreeze
protected void performFreeze()
- Overrides:
performFreezein classAbstractFreezable
-
setDefaultPrefix
public void setDefaultPrefix(String prefix)
-
getDefaultPrefix
public String getDefaultPrefix()
-
-