org.camunda.bpm.cycle.connector
Enum ConnectorNodeType
java.lang.Object
java.lang.Enum<ConnectorNodeType>
org.camunda.bpm.cycle.connector.ConnectorNodeType
- All Implemented Interfaces:
- Serializable, Comparable<ConnectorNodeType>
public enum ConnectorNodeType
- extends Enum<ConnectorNodeType>
Type of a node returned by a connector.
This abstraction is required to capture connector internal information
about a file type which may not be derivable from e.g. a file name.
(One case is Signavio, where the connector knows about a models file type, only).
- Author:
- nico.rehwaldt
UNSPECIFIED
public static final ConnectorNodeType UNSPECIFIED
- Special case which is not yet specified
FOLDER
public static final ConnectorNodeType FOLDER
ANY_FILE
public static final ConnectorNodeType ANY_FILE
BPMN_FILE
public static final ConnectorNodeType BPMN_FILE
PNG_FILE
public static final ConnectorNodeType PNG_FILE
values
public static ConnectorNodeType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ConnectorNodeType c : ConnectorNodeType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConnectorNodeType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getMimeType
public String getMimeType()
isFile
public boolean isFile()
isAnyOf
public boolean isAnyOf(ConnectorNodeType... types)
isDirectory
public boolean isDirectory()
Copyright © 2014 camunda services GmbH. All rights reserved.