|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.lehmannet.om.util.SchemaLoader
public class SchemaLoader
The SchemaLoader provides loading facilities to
load (parse) a XML Schmea file.
You can see this as a Factory of the Schema
Objects.
| Constructor Summary | |
|---|---|
SchemaLoader()
|
|
| Method Summary | |
|---|---|
IEyepiece[] |
getEyepieces()
|
IFilter[] |
getFilters()
|
static IFinding |
getFindingFromXSIType(java.lang.String xsiType,
org.w3c.dom.Node currentNode)
Gets a IFinding object (e.g. |
IImager[] |
getImagers()
|
ILens[] |
getLenses()
|
IObservation[] |
getObservations()
|
IObserver[] |
getObservers()
|
IScope[] |
getScopes()
|
ISession[] |
getSessions()
|
ISite[] |
getSites()
|
static ITarget |
getTargetFromXSIType(java.lang.String xsiType,
org.w3c.dom.Node currentNode,
IObserver[] observers)
Gets a ITarget object (e.g. |
ITarget[] |
getTargets()
|
RootElement |
load(org.w3c.dom.Document doc)
Loads/parses a XML Document |
RootElement |
load(java.io.File xmlFile,
java.io.File schemaPath)
Loads/parses a XML File |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaLoader()
| Method Detail |
|---|
public static ITarget getTargetFromXSIType(java.lang.String xsiType,
org.w3c.dom.Node currentNode,
IObserver[] observers)
throws SchemaException
xsiType - The unique xsi:Type that identifies the object/elementcurrentNode - The XML Node that represents the object
e.g. observers - A array of Observers that are needed to instanciate
a object of type Target
SchemaException - if the given node is not well formed according
to the Schema specifications
public static IFinding getFindingFromXSIType(java.lang.String xsiType,
org.w3c.dom.Node currentNode)
throws SchemaException
xsiType - The unique xsi:Type that identifies the object/elementcurrentNode - The XML Node that represents the object
e.g. SchemaException - if the given node is not well formed according
to the Schema specificationspublic IObservation[] getObservations()
public ISession[] getSessions()
public ITarget[] getTargets()
public IObserver[] getObservers()
public ISite[] getSites()
public IScope[] getScopes()
public IEyepiece[] getEyepieces()
public IFilter[] getFilters()
public ILens[] getLenses()
public IImager[] getImagers()
public RootElement load(java.io.File xmlFile,
java.io.File schemaPath)
throws COMASTException,
SchemaException
schemaPath - The path to the XML Schemas
COMASTException - if schema File cannot be accessed
SchemaException - if XML File is not valid
public RootElement load(org.w3c.dom.Document doc)
throws COMASTException,
SchemaException
doc - The XML Document which should be parsed
COMASTException - if doc is NULL or empty
SchemaException - if XML File is not valid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||