de.cau.cs.kieler.kex.model
Class ExampleResource

java.lang.Object
  extended by de.cau.cs.kieler.kex.model.ExampleResource

public class ExampleResource
extends Object

The main model for representing a example resource.

Rating red

Nested Class Summary
static class ExampleResource.Type
          Used to distinguish the resources.
 
Constructor Summary
ExampleResource(String localPathParam, ExampleResource.Type resourceTypeParam)
          Creates a new ExampleResource.
 
Method Summary
 String getLocalPath()
          Getter for local path.
 ExampleResource.Type getResourceType()
          Getter for resourcetype.
 boolean isDirectOpen()
          Getter for directopen.
 void setDirectOpen(boolean directOpenParam)
          Setter for the attribute directopen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleResource

public ExampleResource(String localPathParam,
                       ExampleResource.Type resourceTypeParam)
Creates a new ExampleResource.

Parameters:
localPathParam - , String
resourceTypeParam - , ExampleResource.Type
Method Detail

setDirectOpen

public void setDirectOpen(boolean directOpenParam)
Setter for the attribute directopen. Set if the resource should open directly after importing in editor.

Parameters:
directOpenParam - , boolean.

getLocalPath

public String getLocalPath()
Getter for local path.

Returns:
String

getResourceType

public ExampleResource.Type getResourceType()
Getter for resourcetype.

Returns:
ExampleResource.Type

isDirectOpen

public boolean isDirectOpen()
Getter for directopen.

Returns:
boolean