ilog.views.appframe.settings
Class IlvSettings.AttributeID

java.lang.Object
  extended by ilog.views.appframe.settings.IlvSettings.AttributeID
Enclosing class:
IlvSettings

public static class IlvSettings.AttributeID
extends Object

Defines ID values that contain the value and the name of an attribute.


Constructor Summary
IlvSettings.AttributeID(String type, String attributeName, Object value)
          Constructs an attribute ID for the attribute with the specified name and value.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether the specified object is equal to this one.
static IlvSettings.AttributeID FromString(String s)
          Creates an attribute ID from a specified attribute ID string representation.
 String getAttributeName()
          Returns the name of the attribute that this attribute ID refers to.
 Object getAttributeValue()
          Returns the value of the attribute that this attribute ID refers to.
 String toString()
          Returns a string representation of this attribute ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvSettings.AttributeID

public IlvSettings.AttributeID(String type,
                               String attributeName,
                               Object value)
Constructs an attribute ID for the attribute with the specified name and value.

Parameters:
attributeName - The name of the attribute.
value - The value of the attribute.
Method Detail

toString

public String toString()
Returns a string representation of this attribute ID. This representation has the following format: <type>[<attributeName>='<attributeValue>']
An attribute ID can be built using this representation with the method FromString(java.lang.String).

Overrides:
toString in class Object
Returns:
A string representation of this attribute ID.

FromString

public static IlvSettings.AttributeID FromString(String s)
Creates an attribute ID from a specified attribute ID string representation.

Parameters:
s - The string to create the attribute ID from.
Returns:
The newly created attribute ID or null if the specified string does not match the string representation format of the AttributeID class.

equals

public boolean equals(Object obj)
Indicates whether the specified object is equal to this one.

Overrides:
equals in class Object
Parameters:
obj - The reference object to compare this object with.
Returns:
true if this object is equal to the object; false otherwise.

getAttributeName

public final String getAttributeName()
Returns the name of the attribute that this attribute ID refers to.

Returns:
The attribute name.

getAttributeValue

public final Object getAttributeValue()
Returns the value of the attribute that this attribute ID refers to.

Returns:
The attribute value.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.