|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.modules.inspection.data.InspectionScriptData
public class InspectionScriptData
Storage for Inspection module scripts. Stores relationships between map data types and the subtypes they should create.
Stores relationships between datatype fields and the inspection fields they should populate. This relies on the basis that a single datatype creates a single subtype. Therefore, a map of datatype names to a map of inspection field names to data type labels is all thats needed.
| Constructor Summary | |
|---|---|
InspectionScriptData()
|
|
InspectionScriptData(com.partnersoft.cog.CogNode node)
|
|
| Method Summary | |
|---|---|
void |
addDatatypeToSubtype(java.lang.String datatype,
java.lang.String subtype)
Sets up a subtype to be set when a given data type is selected. |
com.partnersoft.data.Naming<java.lang.String> |
getDatatypesToSubtypes()
|
com.partnersoft.data.Naming<java.lang.String> |
getLabelsToFieldsForDatatype(java.lang.String datatype)
Returns a map of inspection field names -> data item labels. |
boolean |
isDatatypeUsed(java.lang.String datatype)
|
void |
removeDatatypeToSubtype(java.lang.String datatype)
|
void |
removeLabelToFieldForDatatype(java.lang.String datatype,
java.lang.String inspectionField)
Removes a given inspection field from the copy script data. |
void |
setLabelToFieldForDatatype(java.lang.String datatype,
java.lang.String inspectionField,
java.lang.String dataLabel)
Determines what inspection field should be populated with the data from a given dataLabel when the given data type is selected during an inspection creation. |
com.partnersoft.cog.CogNode |
toCogNode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InspectionScriptData()
public InspectionScriptData(com.partnersoft.cog.CogNode node)
| Method Detail |
|---|
public void addDatatypeToSubtype(java.lang.String datatype,
java.lang.String subtype)
datatype - subtype - public boolean isDatatypeUsed(java.lang.String datatype)
public void removeDatatypeToSubtype(java.lang.String datatype)
public com.partnersoft.data.Naming<java.lang.String> getDatatypesToSubtypes()
public com.partnersoft.data.Naming<java.lang.String> getLabelsToFieldsForDatatype(java.lang.String datatype)
Note the relationship - field names need to be maped to labels. This allows the same label to be copied into multiple fields, it would not make sense to copy multiple labels into a single field.
datatype - - data type for label->field mapping.
public void setLabelToFieldForDatatype(java.lang.String datatype,
java.lang.String inspectionField,
java.lang.String dataLabel)
datatype - dataLabel - inspectionField -
public void removeLabelToFieldForDatatype(java.lang.String datatype,
java.lang.String inspectionField)
datatype - inspectionField - public com.partnersoft.cog.CogNode toCogNode()
toCogNode in interface com.partnersoft.cog.Coggable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||