|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tm4j.tologx.TologFragmentBuilderImpl
Default implementation of the TologFragmentBuilder interface.
Field Summary | |
static java.lang.String |
DEFAULT_VARTOPIC_SUBJECT_INDICATOR_PREFIX
|
static java.lang.String |
ROW_ASSOC_TYPE_SUBJECT_INDICATOR
|
Constructor Summary | |
TologFragmentBuilderImpl()
|
|
TologFragmentBuilderImpl(TopicMapFragment tmFrag)
|
|
TologFragmentBuilderImpl(TopicMapFragment tmFrag,
boolean convertRowInfo)
|
Method Summary | |
java.util.List |
copyRow(java.util.List row)
|
void |
createRowAssoc(java.util.List row)
|
void |
createRowAssocType()
|
void |
createRowVariableTopics(TologResultsSet rs)
|
void |
exportResultsSet(TologResultsSet rs)
Perform the export with the currently specified export parameters. |
void |
setConvertRowInformation(boolean convertRowInfo)
Set the flag which indicates whether or not row information should be exported. |
void |
setFragment(TopicMapFragment tmFrag)
Set the TopicMapFragment into which the results set should be exported. |
void |
setGenerateVarTopicNames(boolean genVarTopicNames)
Set the flag which indicates whether or not topics representing the results set variables should be given base names. |
void |
setGenerateVarTopicSubjectIndicators(boolean genVarTopicSI)
Set the flag which indicates whether or not topics representing the results set variables should be given subject indicators. |
void |
setRowAssociationTypeName(java.lang.String rowAssocTypeName)
Sets the base name string to be assigned to the topic which types the row associations generated if the convertRowInformation option is set to true . |
void |
setVarTopicNamePrefix(java.lang.String namePrefix)
Sets the string to be prepended to the base name string generated for topics which represent results set variables. |
void |
setVarTopicSubjectIndicatorPrefix(java.lang.String vtPrefix)
Sets the prefix part of the subject indicator locator address to be generated for results set variables. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DEFAULT_VARTOPIC_SUBJECT_INDICATOR_PREFIX
public static final java.lang.String ROW_ASSOC_TYPE_SUBJECT_INDICATOR
Constructor Detail |
public TologFragmentBuilderImpl()
public TologFragmentBuilderImpl(TopicMapFragment tmFrag)
public TologFragmentBuilderImpl(TopicMapFragment tmFrag, boolean convertRowInfo)
Method Detail |
public void setFragment(TopicMapFragment tmFrag)
TologFragmentBuilder
setFragment
in interface TologFragmentBuilder
tmFrag
- the topic map fragment to export to.public void setConvertRowInformation(boolean convertRowInfo)
TologFragmentBuilder
true
then the exported topic map fragment will contain
one association for each row in the TologResultsSet. Each association
will have one member for each column in the results set with a single
player for that member.
setConvertRowInformation
in interface TologFragmentBuilder
public void setGenerateVarTopicSubjectIndicators(boolean genVarTopicSI)
TologFragmentBuilder
setGenerateVarTopicSubjectIndicators
in interface TologFragmentBuilder
genVarTopicSI
- true if the topics representing results set variables
should be given subject indicators, false otherwise.public void setVarTopicSubjectIndicatorPrefix(java.lang.String vtPrefix)
TologFragmentBuilder
setVarTopicSubjectIndicatorPrefix
in interface TologFragmentBuilder
vtPrefix
- the prefix string to be used for generating the subject
indicator locators for the topics representing results set
variables.public void setGenerateVarTopicNames(boolean genVarTopicNames)
TologFragmentBuilder
setGenerateVarTopicNames
in interface TologFragmentBuilder
genVarTopicNames
- true if the topics representing results set variables
should be given base names, false otherwise.public void setVarTopicNamePrefix(java.lang.String namePrefix)
TologFragmentBuilder
setVarTopicNamePrefix
in interface TologFragmentBuilder
namePrefix
- the prefix string used in generating names for the
topics which represent results set variables.public void setRowAssociationTypeName(java.lang.String rowAssocTypeName)
TologFragmentBuilder
true
.
setRowAssociationTypeName
in interface TologFragmentBuilder
rowAssocTypeName
- the name assigned to the topic which is used to
type associations generated for each row in the
results set.public void exportResultsSet(TologResultsSet rs) throws TologFragmentBuilderException
TologFragmentBuilder
exportResultsSet
in interface TologFragmentBuilder
rs
- the tolog results set to be exported.
TologFragmentBuilderException
public void createRowAssocType() throws TologFragmentBuilderException
TologFragmentBuilderException
public void createRowVariableTopics(TologResultsSet rs) throws TologFragmentBuilderException
TologFragmentBuilderException
public java.util.List copyRow(java.util.List row) throws TologFragmentBuilderException
TologFragmentBuilderException
public void createRowAssoc(java.util.List row) throws TologFragmentBuilderException
TologFragmentBuilderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |