Class FeatureSchemaUtils

java.lang.Object
org.openjump.core.ui.util.FeatureSchemaUtils

public class FeatureSchemaUtils extends Object
  • Field Details

    • GetSavedFileName

      public static String GetSavedFileName
  • Constructor Details

    • FeatureSchemaUtils

      public FeatureSchemaUtils()
  • Method Details

    • saveSchema

      public static boolean saveSchema(Layer layer) throws Exception
      save Feature schema of a selected Layer.class to external text file
      Parameters:
      layer - the layer from which to save the schema
      Returns:
      true if the schema has been saved
      Throws:
      Exception - if an Exception occurs during schema writing
    • loadSchema

      public static boolean loadSchema(Layer layer) throws Exception
      load feature schema into a selected Layer.class from an external text file
      Parameters:
      layer - the Layer to which we want to apply or add the schema
      Returns:
      true if the schema could be applied to the layer
      Throws:
      Exception - if an Exception occurs during schema reading or applying