public class AsamOdsStreamingFactory extends java.lang.Object implements AsamOdsFactoryIF
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATHOS_PLUM |
static java.lang.String |
CORBA_PLUM |
static java.lang.String |
DESCRIPTOR_POSTFIX
The postfix for the descriptro keyword.
|
static java.lang.String |
FILESERVER_CLASSNAME |
static java.lang.String |
FILETRANSFER_POSTFIX |
protected java.io.PrintStream |
out |
Modifier and Type | Method and Description |
---|---|
void |
configSession(XSDContextIF ctx,
AoSession aoSession,
java.util.Properties context)
Configure the session's context variables.
|
AoSession |
connect(XSDContextIF context,
java.lang.String refdef,
Aosession descriptor,
Filetransfer filetransfer)
Create an ao session using the XML descriptor.
|
AoSession |
connect(XSDContextIF context,
java.lang.String refdef,
Ior descriptor,
Filetransfer filetransfer)
Create an ASAM ODS session using the XML descriptor.
|
AIDName |
create(XSDContextIF context,
ApplicationElement aeObj,
Aidname descriptor)
Create a ASAM ODS AIDName structure from XML descriptor.
|
ApplicationAttribute |
create(XSDContextIF context,
ApplicationElement aeObj,
Attribute descriptor)
Create an application attribute from XML descriptor.
|
InstanceElement[] |
create(XSDContextIF context,
ApplicationElement aeObj,
Instanceelement descriptor)
Create an instance element from XML descriptor.
|
T_LONGLONG |
create(XSDContextIF context,
ApplicationElement aeObj,
Unitid descriptor)
Create a ASAM ODS id of a unit from XML descriptor.
|
NameValueUnit[] |
create(XSDContextIF context,
ApplicationElement aeObj,
Value descriptor)
Create a value from XML descriptor.
|
AIDName |
create(XSDContextIF context,
ApplicationStructure asObj,
Aidname descriptor)
Create a ASAM ODS AIDName structure from XML descriptor.
|
AIDNameUnitId |
create(XSDContextIF context,
ApplicationStructure asObj,
Aidnameunitid descriptor)
Create a ASAM ODS AIDNameUnit structure from aidnameunitid XML descriptor.
|
SelAIDNameUnitId[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Anuseq descriptor,
java.util.List<java.lang.String> alias,
java.util.List<FormatToStringIF> formats)
Create a ASAM ODS SelAIDNameUnitId structure array from orderby XML descriptor.
|
ApplicationElement |
create(XSDContextIF context,
ApplicationStructure asObj,
Applicationelement descriptor)
Create an application element from XML descriptor.
|
ApplicationAttribute |
create(XSDContextIF context,
ApplicationStructure asObj,
Attribute descriptor)
Create an application attribute from XML descriptor.
|
SelItem[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Condseq descriptor)
Create a ASAM ODS SelItem structure array from condseq XML descriptor.
|
AIDName[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Groupby descriptor)
Create a ASAM ODS AIDName structure from groupby XML descriptor.
|
InstanceElement[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Instanceelement descriptor)
Create an instance element from XML descriptor.
|
JoinDef |
create(XSDContextIF context,
ApplicationStructure asObj,
Joindef descriptor)
Create a ASAM ODS JoinDef structure from orderby XML descriptor.
|
JoinDef[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Joinseq descriptor)
Create a ASAM ODS JoinDef structure array from orderby XML descriptor.
|
SelOrder[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Orderby descriptor)
Create a ASAM ODS SelOrder structure from orderby XML descriptor.
|
QueryStructureExt |
create(XSDContextIF context,
ApplicationStructure asObj,
Querystructureext descriptor,
java.util.List<java.lang.String> alias,
java.util.List<FormatToStringIF> formats)
Create a ASAM ODS QueryStructureExt structure from XML descriptor.
|
SelAIDNameUnitId |
create(XSDContextIF context,
ApplicationStructure asObj,
Selaidnameunitid descriptor)
Create a ASAM ODS SelAIDNameUnit structure from aidnameunitid XML descriptor.
|
SelItem |
create(XSDContextIF context,
ApplicationStructure asObj,
Selitem descriptor)
Create a ASAM ODS SelItem structure from selitem XML descriptor.
|
SelOrder |
create(XSDContextIF context,
ApplicationStructure asObj,
Selorder descriptor)
Create a ASAM ODS SelOrder structure from XML descriptor.
|
SelValueExt |
create(XSDContextIF context,
ApplicationStructure asObj,
Selvalueext descriptor)
Create a ASAM ODS SelValueExt structure from aidnameunitid XML descriptor.
|
T_LONGLONG |
create(XSDContextIF context,
ApplicationStructure asObj,
Unitid descriptor)
Create a ASAM ODS id of a unit from XML descriptor.
|
NameValueUnit[] |
create(XSDContextIF context,
ApplicationStructure asObj,
Value descriptor)
Create a value from XML descriptor.
|
NameValueUnit[] |
create(XSDContextIF context,
InstanceElement[] ieObj,
Value descriptor)
Create a value from XML descriptor.
|
TS_Value |
create(XSDContextIF context,
TsValue descriptor)
Create a ASAM ODS TS_Value from XML descriptor.
|
AoSession |
createAoSession(AoSessionDescriptor descriptor)
Create a asam ods session.
|
AoSession |
createAoSession(AoSessionIORDescriptor descriptor)
Create a asam ods session from IOR.
|
T_LONGLONG |
createID(XSDContextIF context,
ApplicationStructure asObj,
Applicationelement descriptor)
Create an application element ID from XML descriptor.
|
ElemId[] |
createID(XSDContextIF context,
ApplicationStructure asObj,
Instanceelement descriptor)
Create an instance element ID from XML descriptor.
|
ElemId[] |
createID(XSDContextIF context,
ApplicationStructure asObj,
T_LONGLONG aeID,
Instanceelement descriptor)
Create an instance element from XML descriptor.
|
TransferIF |
createTransfer(XSDContextIF context,
Filetransfer filetransfer)
Create a transfer object.
|
NameValueUnit[] |
createValue(InstanceElement[] ieObj,
java.lang.String name,
java.lang.String basename,
java.lang.String unit)
Create a Name Value Unit.
|
static AsamOdsStreamingFactory |
getInstance(java.io.PrintStream out)
Get an instance of a factory.
|
static void |
main(java.lang.String[] args) |
protected boolean |
parseBoolean(XSDContextIF context,
java.lang.String literal)
Get the boolean after
|
public static final java.lang.String CORBA_PLUM
public static final java.lang.String ATHOS_PLUM
public static final java.lang.String FILESERVER_CLASSNAME
public static final java.lang.String DESCRIPTOR_POSTFIX
public static final java.lang.String FILETRANSFER_POSTFIX
protected java.io.PrintStream out
public static AsamOdsStreamingFactory getInstance(java.io.PrintStream out)
public void configSession(XSDContextIF ctx, AoSession aoSession, java.util.Properties context) throws AoException
configSession
in interface AsamOdsFactoryIF
ctx
- The runtime context.aoSession
- The session.context
- the properties containing the context values.AoException
public AoSession connect(XSDContextIF context, java.lang.String refdef, Aosession descriptor, Filetransfer filetransfer) throws AoException, java.lang.Exception
connect
in interface AsamOdsFactoryIF
context
- the runtime context.refdef
- the default reference name, may be nulldescriptor
- The JOB descriptor of a session.AoException
- If description is wrong.java.lang.Exception
public AoSession connect(XSDContextIF context, java.lang.String refdef, Ior descriptor, Filetransfer filetransfer) throws AoException, java.lang.Exception
context
- the runtime context.refdef
- the default reference name, may be nulldescriptor
- The JOB descriptor of a IOR session.AoException
- If description is wrong.java.lang.Exception
public TransferIF createTransfer(XSDContextIF context, Filetransfer filetransfer) throws java.lang.Exception
createTransfer
in interface AsamOdsFactoryIF
context
- The context.filetransfer
- the XML description of the transfer.java.lang.Exception
- if instantiation fails.public AoSession createAoSession(AoSessionIORDescriptor descriptor) throws AoException
createAoSession
in interface AsamOdsFactoryIF
descriptor
- the session IOR description.AoException
public AoSession createAoSession(AoSessionDescriptor descriptor) throws AoException
createAoSession
in interface AsamOdsFactoryIF
descriptor
- the session description.AoException
public ApplicationElement create(XSDContextIF context, ApplicationStructure asObj, Applicationelement descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public ApplicationAttribute create(XSDContextIF context, ApplicationStructure asObj, Attribute descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public ApplicationAttribute create(XSDContextIF context, ApplicationElement aeObj, Attribute descriptor) throws AoException
create
in interface AsamOdsFactoryIF
context
- The XML context.aeObj
- the application element.descriptor
- the descriptorAoException
- if descriptor is wrong.public InstanceElement[] create(XSDContextIF context, ApplicationStructure asObj, Instanceelement descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public InstanceElement[] create(XSDContextIF context, ApplicationElement aeObj, Instanceelement descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.aeObj
- the application element.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public NameValueUnit[] create(XSDContextIF context, ApplicationStructure asObj, Value descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public NameValueUnit[] create(XSDContextIF context, ApplicationElement aeObj, Value descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.aeObj
- the application element.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public NameValueUnit[] create(XSDContextIF context, InstanceElement[] ieObj, Value descriptor) throws AoException
create
in interface AsamOdsFactoryIF
context
- The XML context.ieObj
- the instance element.descriptor
- the descriptorAoException
- if descriptor is wrong.public NameValueUnit[] createValue(InstanceElement[] ieObj, java.lang.String name, java.lang.String basename, java.lang.String unit) throws AoException
createValue
in interface AsamOdsFactoryIF
ieObj
- The instance element.name
- the name, it will be used before base, if available.basename
- the basename, that is used when name is not available.unit
- the unit string, that is used to get the value.AoException
- if there is a wrong descriptionpublic AIDName create(XSDContextIF context, ApplicationStructure asObj, Aidname descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public AIDName create(XSDContextIF context, ApplicationElement aeObj, Aidname descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.aeObj
- the application element.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public T_LONGLONG create(XSDContextIF context, ApplicationStructure asObj, Unitid descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public T_LONGLONG create(XSDContextIF context, ApplicationElement aeObj, Unitid descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.aeObj
- the application element of base type aounit.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public TS_Value create(XSDContextIF context, TsValue descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public AIDName[] create(XSDContextIF context, ApplicationStructure asObj, Groupby descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelOrder create(XSDContextIF context, ApplicationStructure asObj, Selorder descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelOrder[] create(XSDContextIF context, ApplicationStructure asObj, Orderby descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public JoinDef create(XSDContextIF context, ApplicationStructure asObj, Joindef descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public JoinDef[] create(XSDContextIF context, ApplicationStructure asObj, Joinseq descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public AIDNameUnitId create(XSDContextIF context, ApplicationStructure asObj, Aidnameunitid descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelAIDNameUnitId create(XSDContextIF context, ApplicationStructure asObj, Selaidnameunitid descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelAIDNameUnitId[] create(XSDContextIF context, ApplicationStructure asObj, Anuseq descriptor, java.util.List<java.lang.String> alias, java.util.List<FormatToStringIF> formats) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptoralias
- A list that is used to return the alias names.formats
- A list that is used to return the format strings.
I no format is found particular element the format will be an empty string.AoException
- if descriptor is wrong.java.text.ParseException
public SelValueExt create(XSDContextIF context, ApplicationStructure asObj, Selvalueext descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelItem[] create(XSDContextIF context, ApplicationStructure asObj, Condseq descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
public SelItem create(XSDContextIF context, ApplicationStructure asObj, Selitem descriptor) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
protected boolean parseBoolean(XSDContextIF context, java.lang.String literal) throws java.text.ParseException
java.text.ParseException
public QueryStructureExt create(XSDContextIF context, ApplicationStructure asObj, Querystructureext descriptor, java.util.List<java.lang.String> alias, java.util.List<FormatToStringIF> formats) throws AoException, java.text.ParseException
create
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptoralias
- A list that is used to return the alias names.formats
- A list that is used to return the format strings.AoException
- if descriptor is wrong.java.text.ParseException
public T_LONGLONG createID(XSDContextIF context, ApplicationStructure asObj, Applicationelement descriptor) throws AoException, java.text.ParseException
createID
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public ElemId[] createID(XSDContextIF context, ApplicationStructure asObj, Instanceelement descriptor) throws AoException, java.text.ParseException
createID
in interface AsamOdsFactoryIF
context
- The XML context.asObj
- the application structure.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public ElemId[] createID(XSDContextIF context, ApplicationStructure asObj, T_LONGLONG aeID, Instanceelement descriptor) throws AoException, java.text.ParseException
context
- The XML context.asObj
- the application structure.aeId
- the application element id.descriptor
- the descriptorAoException
- if descriptor is wrong.java.text.ParseException
- if specification is not transformable.public static void main(java.lang.String[] args)