|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.interlis.iom_j.itf.ModelUtilities
public class ModelUtilities
Utilities related to ITF files.
Method Summary | |
---|---|
static void |
buildEnumList(java.util.List accu,
java.lang.String prefix1,
ch.interlis.ili2c.metamodel.Enumeration enumer)
Builds a list of elements of an enumeration. |
static java.lang.String |
code2string(int code)
Translates a ITF character code to a JAVA String. |
static java.util.HashSet |
getEnumTypes(ch.interlis.ili2c.metamodel.TransferDescription td)
Builds set of enumeration types. |
static java.lang.String |
getHelperTableGeomAttrName(ch.interlis.ili2c.metamodel.AttributeDef attr)
|
static java.lang.String |
getHelperTableMainTableRef(ch.interlis.ili2c.metamodel.AttributeDef attr)
|
static java.util.ArrayList |
getIli1AttrList(ch.interlis.ili2c.metamodel.AbstractClassDef table)
Builds list of attributes and keep Ili1 source ordering. |
static java.util.ArrayList |
getItfTables(ch.interlis.ili2c.metamodel.TransferDescription td,
java.lang.String modelName,
java.lang.String topicName)
Gets list of ITF tables of a given topic. |
static java.util.ArrayList |
getPolylineAttrs(ch.interlis.ili2c.metamodel.AbstractClassDef table)
Gets list of POLYLINE attributes. |
static java.util.HashMap |
getTagMap(ch.interlis.ili2c.metamodel.TransferDescription td)
Gets list of mappings from transfer-table name to model-table or model-attribute. |
static boolean |
isPureRefAssoc(ch.interlis.ili2c.metamodel.Viewable v)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.HashMap getTagMap(ch.interlis.ili2c.metamodel.TransferDescription td)
td
- model as read by the compiler (ili2c)
public static java.util.ArrayList getItfTables(ch.interlis.ili2c.metamodel.TransferDescription td, java.lang.String modelName, java.lang.String topicName)
td
- model as read by the compiler (ili2c)modelName
- name of ili modeltopicName
- name of ili topic
public static java.util.ArrayList getPolylineAttrs(ch.interlis.ili2c.metamodel.AbstractClassDef table)
public static java.util.ArrayList getIli1AttrList(ch.interlis.ili2c.metamodel.AbstractClassDef table)
public static java.util.HashSet getEnumTypes(ch.interlis.ili2c.metamodel.TransferDescription td)
td
- model as read by the compiler (ili2c)
public static java.lang.String code2string(int code) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public static void buildEnumList(java.util.List accu, java.lang.String prefix1, ch.interlis.ili2c.metamodel.Enumeration enumer)
java.util.ArrayList ev=new java.util.ArrayList();
ModelUtilities.buildEnumList(ev,"",type.getConsolidatedEnumeration());
The resulting list contains the element names, so that the first entry
represents ITF code 0 of the given enumeration.
accu
- list to populateprefix1
- prefix to add in front of each elementenumer
- enumeration to collect elements of.public static java.lang.String getHelperTableMainTableRef(ch.interlis.ili2c.metamodel.AttributeDef attr)
public static java.lang.String getHelperTableGeomAttrName(ch.interlis.ili2c.metamodel.AttributeDef attr)
public static boolean isPureRefAssoc(ch.interlis.ili2c.metamodel.Viewable v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |