Class Utils

java.lang.Object
net.ontopia.topicmaps.db2tm.Utils

public class Utils extends Object
INTERNAL: Helper class used by DB2TM internals.
  • Method Details

    • getRelationMapping

      public static RelationMapping getRelationMapping(javax.servlet.jsp.PageContext ctxt)
      INTERNAL: Helper method for maintaining a relation mapping instance throughout a page context.
    • verifyRelationsForMapping

      public static Map<DataSourceIF,Collection<Relation>> verifyRelationsForMapping(RelationMapping rmapping)
      INTERNAL: Returns a map where the keys are data sources and each entry is a collection of their individual relations. Before returning all relations will be verified against the relations declared in the mapping. If relations are missing an error is issued indicating which ones are missing.
    • getTopic

      protected static TopicIF getTopic(String id, Context ctx)
    • getValue

      protected static String getValue(Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
    • isValueEmpty

      protected static boolean isValueEmpty(String value)
    • getLocator

      protected static LocatorIF getLocator(Relation relation, Entity entity, Field field, String[] tuple, Context ctx)
    • expandPrefixedValue

      protected static String expandPrefixedValue(String value, Context ctx)