jsdai.xml
Class SdaiInputSource

java.lang.Object
  extended byorg.xml.sax.InputSource
      extended byjsdai.xml.SdaiInputSource

public class SdaiInputSource
extends org.xml.sax.InputSource

This class is a single JDAI data input source for an XML entity. It encapsulates JSDAI information which is transferred to readers that process JSDAI populations. The object should either be constructed with non default constructor or have at least one set method called before it is passed to JSDAI reader.

See Also:
InstanceReader

Constructor Summary
SdaiInputSource()
          Creates a new empty SDAI input source.
SdaiInputSource(ASchemaInstance schInstances)
          Creates a new input source of the SchemaInstance aggregate.
SdaiInputSource(ASdaiModel models)
          Creates a new input source of the SdaiModel aggregate.
SdaiInputSource(SchemaInstance schInstance)
          Creates a new SchemaInstance input source.
SdaiInputSource(SdaiModel model)
          Creates a new SdaiModel input source.
SdaiInputSource(SdaiRepository repository)
          Creates a new SdaiRepository input source.
 
Method Summary
 SdaiModel getModel()
          Returns the SdaiModel of this input source.
 ASdaiModel[] getModels()
          Returns the SdaiModel aggregates of this input source.
 SdaiRepository getRepository()
          Returns the SdaiRepository of this input source.
 SchemaInstance getSchemaInstance()
          Returns the SchemaInstance of this input source.
 ASchemaInstance getSchemaInstances()
          Returns the SchemaInstance aggregate of this input source.
 void setModel(SdaiModel model)
          Sets SdaiModel as the input source.
 void setModels(ASdaiModel models)
          Sets aggregate of SdaiModel as the input source.
 void setRepository(SdaiRepository repository)
          Sets SdaiRepository as the input source.
 void setSchemaInstance(SchemaInstance schInstance)
          Sets SchemaInstance as the input source.
 void setSchemaInstances(ASchemaInstance schInstances)
          Sets aggregate of SchemaInstances as the input source.
 
Methods inherited from class org.xml.sax.InputSource
getByteStream, getCharacterStream, getEncoding, getPublicId, getSystemId, setByteStream, setCharacterStream, setEncoding, setPublicId, setSystemId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SdaiInputSource

public SdaiInputSource()
Creates a new empty SDAI input source. At least one set should be called afterward to put the object into valid state.


SdaiInputSource

public SdaiInputSource(SdaiRepository repository)
                throws SdaiException
Creates a new SdaiRepository input source.

Parameters:
repository - The SdaiRepository
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

SdaiInputSource

public SdaiInputSource(SchemaInstance schInstance)
                throws SdaiException
Creates a new SchemaInstance input source.

Parameters:
schInstance - The SchemaInstance
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

SdaiInputSource

public SdaiInputSource(ASchemaInstance schInstances)
                throws SdaiException
Creates a new input source of the SchemaInstance aggregate.

Parameters:
schInstances - The SchemaInstance aggregate
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

SdaiInputSource

public SdaiInputSource(SdaiModel model)
                throws SdaiException
Creates a new SdaiModel input source.

Parameters:
model - The SdaiModel
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

SdaiInputSource

public SdaiInputSource(ASdaiModel models)
                throws SdaiException
Creates a new input source of the SdaiModel aggregate.

Parameters:
models - The SdaiModel aggregate
Throws:
SdaiException - if an error occurs in underlying JSDAI operations
Method Detail

setRepository

public void setRepository(SdaiRepository repository)
                   throws SdaiException
Sets SdaiRepository as the input source.

Parameters:
repository - The SdaiRepository
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

getRepository

public SdaiRepository getRepository()
Returns the SdaiRepository of this input source. The repository is set by SdaiInputSource(SdaiRepository) or setRepository(jsdai.lang.SdaiRepository).

Returns:
The repository on null if repository was not set

setSchemaInstance

public void setSchemaInstance(SchemaInstance schInstance)
                       throws SdaiException
Sets SchemaInstance as the input source.

Parameters:
schInstance - The SchemaInstance
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

getSchemaInstance

public SchemaInstance getSchemaInstance()
Returns the SchemaInstance of this input source. The schema instance is set by SdaiInputSource(SchemaInstance) or setSchemaInstance(jsdai.lang.SchemaInstance).

Returns:
The schema instance on null if schema instance was not set

setSchemaInstances

public void setSchemaInstances(ASchemaInstance schInstances)
                        throws SdaiException
Sets aggregate of SchemaInstances as the input source.

Parameters:
schInstances - The SchemaInstance aggregate
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

getSchemaInstances

public ASchemaInstance getSchemaInstances()
Returns the SchemaInstance aggregate of this input source. The schema instance aggregate is set by SdaiInputSource(SdaiRepository), SdaiInputSource(ASchemaInstance), setRepository(jsdai.lang.SdaiRepository), or setSchemaInstances(jsdai.lang.ASchemaInstance).

Returns:
The schema instance aggregate on null if schema instance aggregate was not set

setModel

public void setModel(SdaiModel model)
              throws SdaiException
Sets SdaiModel as the input source.

Parameters:
model - The SdaiModel
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

getModel

public SdaiModel getModel()
Returns the SdaiModel of this input source. The model is set by SdaiInputSource(SdaiModel) or setModel(jsdai.lang.SdaiModel).

Returns:
The model on null if model was not set

setModels

public void setModels(ASdaiModel models)
               throws SdaiException
Sets aggregate of SdaiModel as the input source.

Parameters:
models - The SdaiModel aggregate
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

getModels

public ASdaiModel[] getModels()
Returns the SdaiModel aggregates of this input source. The model aggregates are set by SdaiInputSource(SdaiRepository), SdaiInputSource(SchemaInstance), SdaiInputSource(ASchemaInstance), SdaiInputSource(ASdaiModel), setRepository(jsdai.lang.SdaiRepository), setSchemaInstance(jsdai.lang.SchemaInstance), setSchemaInstances(jsdai.lang.ASchemaInstance) or setModels(jsdai.lang.ASdaiModel).

Returns:
The array of model aggregates on null if model aggregates were not set

Copyright © LKSoftWare GmbH, 1999-2008