project35.soa.ontology.sources
Class SchemaConceptOntologyTermUtility

java.lang.Object
  extended by project35.soa.ontology.sources.SchemaConceptOntologyTermUtility

public class SchemaConceptOntologyTermUtility
extends java.lang.Object

a convenience class that converts information about schema concepts into ontology terms. in some of the Project35 configuration tools, there is a feature which allows the user to mark-up a field with the name of a record or field from a target XML schema. However, the names of configuration fields which can accept these values can vary and more field names will likely be used in future tools that build on the Project35 libraries.

The class is designed to help developers on the Project35 project make ontology sources that can populate configuration fields with terms taken from an XML schema. Developers register the names of configuration fields that correspond with collections of ontology terms that represent record names supported by a schema, or different types of fields for a given record type. The class is used by the Project35OntologySource.

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
SchemaConceptOntologyTermUtility(RecordModelFactory recordModelFactory)
           
 
Method Summary
 OntologyTerm[] gatherAllFieldTerms(java.lang.String recordClassName)
           
 OntologyTerm[] gatherAttributeFieldTerms(java.lang.String recordClassName)
           
 OntologyTerm[] gatherEditAndAttributeFieldTerms(java.lang.String recordClassName)
           
 OntologyTerm[] gatherEditFieldTerms(java.lang.String recordClassName)
           
 OntologyTerm[] gatherFieldTerms(java.lang.String recordClassName, java.lang.String fieldTypeIndicator)
           
 OntologyTerm[] gatherListFieldTerms(java.lang.String recordClassName)
           
 OntologyTerm[] gatherRecordClassNames()
           
 void registerFieldNameForSchemaAttributeFields(java.lang.String fieldNameForSchemaAttributeFieldTerms)
          registers names of a form field which would require a collection of ontology terms which describe the attribute fields fields for a given record type specified in the target XML schema.
 void registerFieldNameForSchemaEditAndAttributeFields(java.lang.String fieldNameForSchemaEditAndAttributeFieldTerms)
          registers names of a form field which would require a collection of ontology terms which describe the edit fields and attribute fields fields for a given record type specified in the target XML schema.
 void registerFieldNameForSchemaEditFields(java.lang.String fieldNameForSchemaEditFieldTerms)
          registers names of a form field which would require a collection of ontology terms which describe the edit fields for a given record type specified in the target XML schema.
 void registerFieldNamesForSchemaListTerms(java.lang.String fieldNameForSchemaListTerms)
          registers names of a form field which would require a collection of ontology terms which describe the list fields for a given record type specified in the target XML schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaConceptOntologyTermUtility

public SchemaConceptOntologyTermUtility(RecordModelFactory recordModelFactory)
Method Detail

gatherRecordClassNames

public OntologyTerm[] gatherRecordClassNames()

gatherAllFieldTerms

public OntologyTerm[] gatherAllFieldTerms(java.lang.String recordClassName)

gatherListFieldTerms

public OntologyTerm[] gatherListFieldTerms(java.lang.String recordClassName)

gatherEditFieldTerms

public OntologyTerm[] gatherEditFieldTerms(java.lang.String recordClassName)

gatherEditAndAttributeFieldTerms

public OntologyTerm[] gatherEditAndAttributeFieldTerms(java.lang.String recordClassName)

gatherAttributeFieldTerms

public OntologyTerm[] gatherAttributeFieldTerms(java.lang.String recordClassName)

gatherFieldTerms

public OntologyTerm[] gatherFieldTerms(java.lang.String recordClassName,
                                       java.lang.String fieldTypeIndicator)

registerFieldNamesForSchemaListTerms

public void registerFieldNamesForSchemaListTerms(java.lang.String fieldNameForSchemaListTerms)
registers names of a form field which would require a collection of ontology terms which describe the list fields for a given record type specified in the target XML schema.


registerFieldNameForSchemaEditFields

public void registerFieldNameForSchemaEditFields(java.lang.String fieldNameForSchemaEditFieldTerms)
registers names of a form field which would require a collection of ontology terms which describe the edit fields for a given record type specified in the target XML schema.


registerFieldNameForSchemaAttributeFields

public void registerFieldNameForSchemaAttributeFields(java.lang.String fieldNameForSchemaAttributeFieldTerms)
registers names of a form field which would require a collection of ontology terms which describe the attribute fields fields for a given record type specified in the target XML schema.


registerFieldNameForSchemaEditAndAttributeFields

public void registerFieldNameForSchemaEditAndAttributeFields(java.lang.String fieldNameForSchemaEditAndAttributeFieldTerms)
registers names of a form field which would require a collection of ontology terms which describe the edit fields and attribute fields fields for a given record type specified in the target XML schema.