SDX Network Information Collector SDK

net.juniper.smgt.gateway.gal
Class NicValue

java.lang.Object
  extended by net.juniper.smgt.gateway.gal.NicValue
Direct Known Subclasses:
CorbaRefSaeId

public class NicValue
extends java.lang.Object

The NicValue is the type returned from one of the lookup methods defined in the NIC or the SaeLocator interface.


Constructor Summary
NicValue(java.lang.String newVal)
          Constructs NicValue given the goal.
NicValue(java.lang.String newVal, java.util.Map steps)
          Constructs NicValue given the goal and the intermediate values.
 
Method Summary
 boolean equals(java.lang.Object o)
          NicValues are equal if they have equal values
 java.util.Map getAllIntermediateValues()
          Return all the intermediate values involved in this resolution as a Map.
 java.lang.String getIntermediateValue(java.lang.String dataTypeName)
          Return the intermediate value of this type involved in this resolution.
 java.lang.String[] getIntermediateValues(java.lang.String dataTypeName)
          Return all the intermediate values of this type involved in this resolution.
 java.lang.String getValue()
          Return the goal value represented by this current object.
 int hashCode()
          Returns hash code for this NicValue
 boolean isSsrId()
           
 java.lang.String toString()
          Returns string representation of the value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NicValue

public NicValue(java.lang.String newVal,
                java.util.Map steps)
Constructs NicValue given the goal and the intermediate values.


NicValue

public NicValue(java.lang.String newVal)
Constructs NicValue given the goal. No intermediate values are provided.

Method Detail

getValue

public java.lang.String getValue()
Return the goal value represented by this current object.

Returns:
a string representation of the value

getAllIntermediateValues

public java.util.Map getAllIntermediateValues()
Return all the intermediate values involved in this resolution as a Map. Note that, the values include the goal value (returned by getValue()).

Returns:
A Map containing all the intermediate values key: the data type name (as a string) value: List of intermediate values of this type (as strings) Can return null if this instance was created without intermediate values.

getIntermediateValues

public java.lang.String[] getIntermediateValues(java.lang.String dataTypeName)
Return all the intermediate values of this type involved in this resolution.

Parameters:
the - Network Data type name
Returns:
A string array of all the values of this type, null if values of this type was involved.

getIntermediateValue

public java.lang.String getIntermediateValue(java.lang.String dataTypeName)
Return the intermediate value of this type involved in this resolution. If multiple values exist, a random value will be returned.

Parameters:
the - Network Data type name
Returns:
the string represenation of the value of this type, null if no value of this type was involved.

toString

public java.lang.String toString()
Returns string representation of the value

Overrides:
toString in class java.lang.Object
Returns:
java.lang.String

equals

public boolean equals(java.lang.Object o)
NicValues are equal if they have equal values

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to which to test equality
Returns:
true if equal, false otherwise

hashCode

public int hashCode()
Returns hash code for this NicValue

Overrides:
hashCode in class java.lang.Object

isSsrId

public boolean isSsrId()

SDX Network Information Collector SDK