@Test public void testGetSupportedDirections() { MConnector connector = createConnector(Arrays.asList(Direction.FROM, Direction.TO)); assertTrue(connector.getSupportedDirections().isDirectionSupported(Direction.FROM)); assertTrue(connector.getSupportedDirections().isDirectionSupported(Direction.TO)); connector = createConnector(Arrays.asList(Direction.FROM)); assertTrue(connector.getSupportedDirections().isDirectionSupported(Direction.FROM)); assertFalse(connector.getSupportedDirections().isDirectionSupported(Direction.TO)); connector = createConnector(Arrays.asList(Direction.TO)); assertFalse(connector.getSupportedDirections().isDirectionSupported(Direction.FROM)); assertTrue(connector.getSupportedDirections().isDirectionSupported(Direction.TO)); connector = createConnector(Arrays.asList(new Direction[]{})); assertFalse(connector.getSupportedDirections().isDirectionSupported(Direction.FROM)); assertFalse(connector.getSupportedDirections().isDirectionSupported(Direction.TO)); }
public SupportedDirections getSupportedDirections() { return new SupportedDirections(this.getConfig(Direction.FROM) != null, this.getConfig(Direction.TO) != null); }
MConnector extends Configurable { public SupportedDirections getSupportedDirections() { return new SupportedDirections(this.getConfig(Direction.FROM) != null, this.getConfig(Direction.TO) != null); } }
MConnector extends Configurable { public SupportedDirections getSupportedDirections() { return new SupportedDirections(this.getConfig(Direction.FROM) != null, this.getConfig(Direction.TO) != null); } MConnector(String uniqueName, String className, String version, MLinkConfig linkConfig,
      MFromConfig fromConfig, MToConfig toConfig); }
MConnector extends Configurable { public SupportedDirections getSupportedDirections() { return new SupportedDirections(this.getConfig(Direction.FROM) != null, this.getConfig(Direction.TO) != null); } MConnector(String uniqueName, String className, String version, MLinkConfig linkConfig,
      MFromConfig fromConfig, MToConfig toConfig); String getUniqueName(); String getClassName(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); MConnector clone(boolean cloneWithValue); MLinkConfig getLinkConfig(); MConfigList getConfig(Direction type); MFromConfig getFromConfig(); MToConfig getToConfig(); String getVersion(); MConfigurableType getType(); SupportedDirections getSupportedDirections(); }
MConnector extends Configurable { public SupportedDirections getSupportedDirections() { return new SupportedDirections(this.getConfig(Direction.FROM) != null, this.getConfig(Direction.TO) != null); } MConnector(String uniqueName, String className, String version, MLinkConfig linkConfig,
      MFromConfig fromConfig, MToConfig toConfig); String getUniqueName(); String getClassName(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); MConnector clone(boolean cloneWithValue); MLinkConfig getLinkConfig(); MConfigList getConfig(Direction type); MFromConfig getFromConfig(); MToConfig getToConfig(); String getVersion(); MConfigurableType getType(); SupportedDirections getSupportedDirections();  }