Java API ReferenceClass Hierarchy | All Classes | All Fields and Methods

com.ibm.xtools.patterns.framework

Class ParameterArgument

+-- AbstractParameterArgument
      +-- ParameterArgument

public Class ParameterArgument
extends AbstractParameterArgument

Provides a default implementation for the AbstractParameterArgument abstract class.

A ParameterArgument represents an argument value supplied for a parameter of aparticular pattern.

The ParameterArgument overrides equals and hashCode to ensure correct semantics for equality of parameter arguments.


Constructor summary
ParameterArgument(Object value)

Represents the argument to be added for the parameter.

Method summary
booleanequals(Object object)

Compares for equality through the default implementation of java.lang.Object.equals(Object).

StringgetImage()

Provides a string representing the image value.

IPatternMetatypegetMetatype()

Provides the metatype value.

ObjectgetValue()

Provides the current value.

inthashCode()

Provides the value.

Constructor detail

ParameterArgument

public ParameterArgument(Object value)

Represents the argument to be added for the parameter.

Parameters:

value
- The value of the argument.

Method detail

equals

public boolean equals(Object object)

Compares for equality through the default implementation of java.lang.Object.equals(Object).

Parameters:

object
- The object to be compared.

Returns:

A boolean value of true if the object is equal. Otherwise, it returns a value of false.

getImage

public String getImage()

Provides a string representing the image value.

Returns:

A string representing the image value.

getMetatype

public IPatternMetatype getMetatype()

Provides the metatype value.

Returns:

An IPatternMetatype object representing the metatype value.

getValue

public Object getValue()

Provides the current value.

Returns:

This value current value.

hashCode

public int hashCode()

Provides the value.

Returns:

Returns an integer representing the value.


Feedback