Package com.portwise.core.lcp
Class OneValueAttribute
- java.lang.Object
-
- com.portwise.core.lcp.OneValueAttribute
-
public class OneValueAttribute extends java.lang.Object
A holder for a name and a value.
-
-
Constructor Summary
Constructors Constructor Description OneValueAttribute(LCPString name, LCPString value)
Constructs a newOneValueAttribute
instance with the specified attribute name and value.OneValueAttribute(java.lang.String name, java.lang.String value)
Constructs a newOneValueAttribute
instance with the specified attribute name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
LCPString
getName()
Returns the name of this attribute.LCPString
getValue()
Returns the value of this attribute.
-
-
-
Constructor Detail
-
OneValueAttribute
public OneValueAttribute(LCPString name, LCPString value)
Constructs a newOneValueAttribute
instance with the specified attribute name and value.- Parameters:
name
- The name of the attribute.value
- The value of the attribute.
-
OneValueAttribute
public OneValueAttribute(java.lang.String name, java.lang.String value)
Constructs a newOneValueAttribute
instance with the specified attribute name and value.- Parameters:
name
- The name of the attribute.value
- The value of the attribute.
-
-
Method Detail
-
getName
public LCPString getName()
Returns the name of this attribute.- Returns:
- The name of this attribute.
-
getValue
public LCPString getValue()
Returns the value of this attribute.- Returns:
- The value of this attribute.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
-