public final class ArgDescriptor extends Object
Module: equations-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>equations-api</artifactId> </dependency>
Constructor and Description |
---|
ArgDescriptor(ArgType argType,
String argName,
String description) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsMultipleArgs()
Returns true if this ArgDescriptor accepts multiple arguments, otherwise false.
|
String |
getArgName()
Returns the name of the argument.
|
ArgType |
getArgType() |
Class[] |
getCompatibleTypes()
Returns the types that are compatible with this argument.
|
String |
getDescription()
Returns the description of the argument.
|
boolean |
isCompatibleList(Class listElementType)
Returns true if "listType", which must be some type of List is a type compatible with this argument descriptor.
|
boolean |
isCompatibleWith(Class type)
Tests to see if the specified class is compatible with this ArgType.
|
boolean |
isOptional()
Returns whether the ArgType is optional.
|
public ArgType getArgType()
public String getArgName()
public String getDescription()
public boolean isOptional()
public boolean isCompatibleWith(Class type)
type
- the Class to test against this ArgType.public boolean isCompatibleList(Class listElementType)
listType
- A type that is a subclass of List.public Class[] getCompatibleTypes()
public boolean acceptsMultipleArgs()
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.