예제 #1
0
  /** PropertyConsumer method. */
  public Properties getProperties(Properties props) {
    if (props == null) {
      props = new Properties();
    }

    if (coordTransform instanceof PropertyConsumer) {
      ((PropertyConsumer) coordTransform).getProperties(props);
    }

    return props;
  }
예제 #2
0
 /**
  * It seems like every PropertyConsumer wrestles with having a prefix or not. This method lets you
  * just get the prefix with a period on the end (for scoping purposes), or just returns an empty
  * String. Either way, you get a String you can slap on the beginning of your defined propery
  * names to get a valid property based on what the prefix is.
  */
 public static String getScopedPropertyPrefix(PropertyConsumer pc) {
   return getScopedPropertyPrefix(pc.getPropertyPrefix());
 }