|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.client.objecteditor.types.MethodDefinition
public class MethodDefinition
Defines a method that an object exposes via Fedora. A service definition object specifies this.
| Constructor Summary | |
|---|---|
MethodDefinition(String name,
String label,
List parameterDefinitions)
Initialize a MethodDefinition object with all values. |
|
| Method Summary | |
|---|---|
String |
getLabel()
Get a short description of the method. |
String |
getName()
Get the name of the method. |
List |
parameterDefinitions()
Get the method's list of ParameterDefinitions. |
static List |
parse(InputStream xml)
Parse a stream of XML and return the list of method definitions defined therein. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodDefinition(String name,
String label,
List parameterDefinitions)
| Method Detail |
|---|
public static List parse(InputStream xml)
throws IOException
<Method operationName="METHOD_NAME"
label="METHOD_LABEL"(0-1)>
<UserInputParm parmName="PARAMETER_NAME"
label="PARAMETER_LABEL"(0-1)
required="IS_REQUIRED"
defaultValue="DEFAULT_VALUE">
<ValidParmValues>(0-1)
<ValidParm value="VALID_VALUE_1"/>(0-)
</ValidParmValues>
</UserInputParm>(0-)
</Method>
IOExceptionpublic String getName()
public String getLabel()
public List parameterDefinitions()
ParameterDefinitions. If the
method takes no parameters, this will be an empty list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||