Package mil.nga.crs.operation
Class OperationMethod
- java.lang.Object
-
- mil.nga.crs.operation.OperationMethod
-
- All Implemented Interfaces:
Identifiable
public class OperationMethod extends Object implements Identifiable
Operation Method- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description OperationMethod()
ConstructorOperationMethod(String name)
ConstructorOperationMethod(OperationMethods method)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIdentifier(Identifier identifier)
Add the identifiervoid
addIdentifiers(List<Identifier> identifiers)
Add the identifiersvoid
addParameter(OperationParameter parameter)
Add the parametervoid
addParameters(List<OperationParameter> parameters)
Add the parametersboolean
equals(Object obj)
Identifier
getIdentifier(int index)
Get the identifier at the indexList<Identifier>
getIdentifiers()
Get the identifiersOperationMethods
getMethod()
Get the commonly known method typeString
getName()
Get the nameOperationParameter
getParameter(int index)
Get the parameter at the indexList<OperationParameter>
getParameters()
Get the parametersint
hashCode()
boolean
hasIdentifiers()
Has identifiersboolean
hasMethod()
Is a commonly known method typeboolean
hasParameters()
Has parametersint
numIdentifiers()
Number of identifiersint
numParameters()
Number of parametersvoid
setIdentifiers(List<Identifier> identifiers)
Set the identifiersvoid
setMethod(OperationMethods method)
Set the commonly known method typevoid
setName(String name)
Set the namevoid
setParameters(List<OperationParameter> parameters)
Set the parametersString
toString()
void
updateMethod()
Update the commonly known method type using the name
-
-
-
Constructor Detail
-
OperationMethod
public OperationMethod()
Constructor
-
OperationMethod
public OperationMethod(String name)
Constructor- Parameters:
name
- name
-
OperationMethod
public OperationMethod(OperationMethods method)
Constructor- Parameters:
method
- operation method
-
-
Method Detail
-
getName
public String getName()
Get the name- Returns:
- name
-
setName
public void setName(String name)
Set the name- Parameters:
name
- name
-
getParameters
public List<OperationParameter> getParameters()
Get the parameters- Returns:
- parameters
-
hasParameters
public boolean hasParameters()
Has parameters- Returns:
- true if has parameters
-
numParameters
public int numParameters()
Number of parameters- Returns:
- parameters count
-
getParameter
public OperationParameter getParameter(int index)
Get the parameter at the index- Parameters:
index
- parameter index- Returns:
- parameter
-
setParameters
public void setParameters(List<OperationParameter> parameters)
Set the parameters- Parameters:
parameters
- parameters
-
addParameter
public void addParameter(OperationParameter parameter)
Add the parameter- Parameters:
parameter
- parameter
-
addParameters
public void addParameters(List<OperationParameter> parameters)
Add the parameters- Parameters:
parameters
- parameters
-
getIdentifiers
public List<Identifier> getIdentifiers()
Get the identifiers- Specified by:
getIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers
-
hasIdentifiers
public boolean hasIdentifiers()
Has identifiers- Specified by:
hasIdentifiers
in interfaceIdentifiable
- Returns:
- true if has identifiers
-
numIdentifiers
public int numIdentifiers()
Number of identifiers- Specified by:
numIdentifiers
in interfaceIdentifiable
- Returns:
- identifiers count
-
getIdentifier
public Identifier getIdentifier(int index)
Get the identifier at the index- Specified by:
getIdentifier
in interfaceIdentifiable
- Parameters:
index
- identifier index- Returns:
- identifier
-
setIdentifiers
public void setIdentifiers(List<Identifier> identifiers)
Set the identifiers- Specified by:
setIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
addIdentifier
public void addIdentifier(Identifier identifier)
Add the identifier- Specified by:
addIdentifier
in interfaceIdentifiable
- Parameters:
identifier
- identifier
-
addIdentifiers
public void addIdentifiers(List<Identifier> identifiers)
Add the identifiers- Specified by:
addIdentifiers
in interfaceIdentifiable
- Parameters:
identifiers
- identifiers
-
getMethod
public OperationMethods getMethod()
Get the commonly known method type- Returns:
- method type or null
-
hasMethod
public boolean hasMethod()
Is a commonly known method type- Returns:
- true if has common method type
-
setMethod
public void setMethod(OperationMethods method)
Set the commonly known method type- Parameters:
method
- method type or null
-
updateMethod
public void updateMethod()
Update the commonly known method type using the name
-
-