com.evolveum.midpoint.schema
Class SchemaDescription

java.lang.Object
  extended by com.evolveum.midpoint.schema.SchemaDescription
All Implemented Interfaces:
Dumpable

public class SchemaDescription
extends java.lang.Object
implements Dumpable


Method Summary
 boolean canInputStream()
           
 java.lang.String dump()
          Show the content of the object intended for diagnostics by developer.
 org.w3c.dom.Element getDomElement()
           
 java.lang.String getNamespace()
           
 java.lang.String getPath()
           
 Schema getSchema()
           
 javax.xml.transform.Source getSource()
           
 java.lang.String getSourceDescription()
           
 java.lang.String getUsualPrefix()
           
 boolean isMidPointSchema()
           
 java.io.InputStream openInputStream()
           
static SchemaDescription parseFile(java.io.File file)
           
static SchemaDescription parseNode(org.w3c.dom.Node node, java.lang.String sourceDescription)
           
static SchemaDescription parseResource(java.lang.String resourcePath)
           
 void setMidPointSchema(boolean isMidPointSchema)
           
 void setNamespace(java.lang.String namespace)
           
 void setPath(java.lang.String path)
           
 void setResourcePath(java.lang.String path)
           
 void setSchema(Schema schema)
           
 void setSourceDescription(java.lang.String sourceDescription)
           
 void setUsualPrefix(java.lang.String usualPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPath

public java.lang.String getPath()

setResourcePath

public void setResourcePath(java.lang.String path)

getNamespace

public java.lang.String getNamespace()

setNamespace

public void setNamespace(java.lang.String namespace)

getUsualPrefix

public java.lang.String getUsualPrefix()

setUsualPrefix

public void setUsualPrefix(java.lang.String usualPrefix)

getSourceDescription

public java.lang.String getSourceDescription()

setSourceDescription

public void setSourceDescription(java.lang.String sourceDescription)

setPath

public void setPath(java.lang.String path)

isMidPointSchema

public boolean isMidPointSchema()

setMidPointSchema

public void setMidPointSchema(boolean isMidPointSchema)

getSchema

public Schema getSchema()

setSchema

public void setSchema(Schema schema)

parseResource

public static SchemaDescription parseResource(java.lang.String resourcePath)
                                       throws SchemaException
Throws:
SchemaException

parseFile

public static SchemaDescription parseFile(java.io.File file)
                                   throws java.io.FileNotFoundException,
                                          SchemaException
Throws:
java.io.FileNotFoundException
SchemaException

parseNode

public static SchemaDescription parseNode(org.w3c.dom.Node node,
                                          java.lang.String sourceDescription)
                                   throws SchemaException
Throws:
SchemaException

canInputStream

public boolean canInputStream()

openInputStream

public java.io.InputStream openInputStream()

getSource

public javax.xml.transform.Source getSource()

getDomElement

public org.w3c.dom.Element getDomElement()

dump

public java.lang.String dump()
Description copied from interface: Dumpable
Show the content of the object intended for diagnostics by developer. The content may be multi-line, in case of hierarchical objects it may be intended. The use of this method may not be efficient. It is not supposed to be used in normal operation. However, it is very useful in tests or in case of dumping objects in severe error situations.

Specified by:
dump in interface Dumpable
Returns:
content of the object intended for diagnostics.


Copyright © 2012 evolveum. All Rights Reserved.