public abstract class MBaseFactory
extends java.lang.Object
implements com.tibco.infra.repository.DataFactory
Constructor and Description |
---|
MBaseFactory(MApp app) |
Modifier and Type | Method and Description |
---|---|
void |
beginAssoc(java.lang.String name,
int nElements)
Called at the start of reading an assoc list.
|
void |
beginDataStream() |
void |
endAssoc()
Called after an assoc list has finished.
|
void |
endDataStream()
Called after the last data element callback has been
issued.
|
protected MApp |
getApp() |
java.lang.String |
getProperty(Name key,
java.lang.String defaultValue)
Return a property value.
|
void |
haveBinaryData(java.lang.String name,
byte[] value)
Called when a binary-valued pair arrives.
|
void |
haveGlobalNameData(java.lang.String name,
com.tibco.infra.base.GlobalName value)
Called when a global-name-valued pair arrives.
|
void |
haveStringData(java.lang.String name,
java.lang.String value)
Called when a string-valued pair arrives.
|
void |
setProperty(Name key,
java.lang.String value)
Set the value of a property
|
public MBaseFactory(MApp app)
protected MApp getApp()
public void beginDataStream()
beginDataStream
in interface com.tibco.infra.repository.DataFactory
public void beginAssoc(java.lang.String name, int nElements)
Name
is
the name of the repository object if this is the top-level
association list, otherwise will be the name of an association
name-value pair if this is a nested association list.
nElements
is the number of pairs in the list.beginAssoc
in interface com.tibco.infra.repository.DataFactory
name
- if this assoc list is the top-level assoc list for the
object being queried, then name
is the name of the
object. Otherwise it is the name of an association name-value
pair.nElements
- the number of top-level elements in this
association list.Assoc
public void endAssoc()
endAssoc
in interface com.tibco.infra.repository.DataFactory
Assoc
public void haveStringData(java.lang.String name, java.lang.String value)
haveStringData
in interface com.tibco.infra.repository.DataFactory
name
- the name of this association name-value pair.value
- the string value of this association name-value pair.public void haveBinaryData(java.lang.String name, byte[] value)
haveBinaryData
in interface com.tibco.infra.repository.DataFactory
name
- the name of this association name-value pair.value
- the binary value of this association name-value pair.public void haveGlobalNameData(java.lang.String name, com.tibco.infra.base.GlobalName value)
haveGlobalNameData
in interface com.tibco.infra.repository.DataFactory
name
- the name of this association name-value pair.value
- the global-name value of this association name-value pair.public void endDataStream()
endDataStream
in interface com.tibco.infra.repository.DataFactory
public java.lang.String getProperty(Name key, java.lang.String defaultValue)
key
- for the propertydefault
- default to return if no such property foundpublic void setProperty(Name key, java.lang.String value)
key
- key to use for lookupvalue
- value corresponding to the key