org.eclipse.ocl.examples.domain.values.impl
Class StringValueImpl
java.lang.Object
org.eclipse.ocl.examples.domain.values.impl.AbstractValue
org.eclipse.ocl.examples.domain.values.impl.StringValueImpl
- All Implemented Interfaces:
- StringValue, Value
public class StringValueImpl
- extends AbstractValue
- implements StringValue
Fields inherited from interface org.eclipse.ocl.examples.domain.values.Value |
INVALID_NAME |
Methods inherited from class org.eclipse.ocl.examples.domain.values.impl.AbstractValue |
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.domain.values.Value |
asBagValue, asBoolean, asBooleanValue, asCollectionValue, asDouble, asEcoreObject, asElement, asElementValue, asInteger, asIntegerValue, asNavigableObject, asObjectValue, asOrderedSetValue, asRealValue, asSequenceValue, asSetValue, asTypeValue, asUniqueCollectionValue, getActualType, getValueFactory, isCollectionValue, isFalse, isIntegerValue, isInvalid, isNull, isRealValue, isTrue, isUndefined, isUnlimited, isUnlimitedNatural, oclToString, toIntegerValue, toIteratorValue, toRealValue |
StringValueImpl
public StringValueImpl(ValueFactory valueFactory,
java.lang.String value)
asObject
public java.lang.Object asObject()
- Specified by:
asObject
in interface Value
asString
public java.lang.String asString()
- Specified by:
asString
in interface Value
- Overrides:
asString
in class AbstractValue
asStringValue
public StringValue asStringValue()
- Specified by:
asStringValue
in interface Value
- Overrides:
asStringValue
in class AbstractValue
asValidValue
public Value asValidValue()
- Specified by:
asValidValue
in interface Value
compareTo
public int compareTo(StringValue o)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
getType
public DomainType getType()
- Description copied from interface:
Value
- Return the type of this value determined from its construction context. In the case of collections
this may differ from the actual type.
- Specified by:
getType
in interface Value
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
stringValue
public java.lang.String stringValue()
- Specified by:
stringValue
in interface StringValue
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public void toString(java.lang.StringBuilder s,
int sizeLimit)
- Specified by:
toString
in interface Value
- Overrides:
toString
in class AbstractValue