org.shiwa.fgi.agwl2iwir.dataport
Class PortTypeTranslator
java.lang.Object
org.shiwa.fgi.agwl2iwir.dataport.PortTypeTranslator
public class PortTypeTranslator
- extends java.lang.Object
|
Method Summary |
static void |
checkType(org.shiwa.fgi.iwir.AbstractPort fromPort,
org.shiwa.fgi.iwir.AbstractPort toPort)
|
static void |
checkTypeCollection(org.shiwa.fgi.iwir.AbstractPort searchedPort,
org.shiwa.fgi.iwir.AbstractPort givenPort)
|
static java.lang.String |
translate(java.lang.String type)
Translates the agwl type into an iwir type.
Depending on the given type it returns the corresponding iwir type. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortTypeTranslator
public PortTypeTranslator()
translate
public static java.lang.String translate(java.lang.String type)
- Translates the agwl type into an iwir type.
Depending on the given type it returns the corresponding iwir type. For a
given "collection" it returns per default "collection/file" (correct type
has to be searched).
- Parameters:
type - agwl type
- Returns:
- iwir type
- Throws:
TranslationException - if the port could not be recognized
checkTypeCollection
public static void checkTypeCollection(org.shiwa.fgi.iwir.AbstractPort searchedPort,
org.shiwa.fgi.iwir.AbstractPort givenPort)
- Parameters:
searchedPort - givenPort -
checkType
public static void checkType(org.shiwa.fgi.iwir.AbstractPort fromPort,
org.shiwa.fgi.iwir.AbstractPort toPort)