public final class NFDimension extends java.lang.Object implements ISerializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBREVIATION
The abbreviation used for this class during serialization.
|
static short |
IDENTIFIER_ABILITY
This is an identifier that denotes that the specified extension should
have the specified ability.
|
static short |
IDENTIFIER_GATEWAY
This is an identifier that denotes whether routing should use gateways
This dimension only supports hard values and the value must be a boolean
set to true if gateways shall be used and false if gateways shall not be
used.
|
static short |
IDENTIFIER_REQUIRED
This is a marker dimension that denotes that the specified extension
is required.
|
static short |
IDENTIFIER_TYPE
This is an identifier that denotes a specific type.
|
static short |
ORDERING_ASCENDING
Constant that defines the ordering to be ascending.
|
static short |
ORDERING_DESCENDING
Constant that defines the ordering to be descending.
|
Constructor and Description |
---|
NFDimension()
This constructor is solely used during serialization, do not
call this constructor from user code.
|
NFDimension(short identifier,
java.lang.Object hardValue)
Creates a dimension that is not ordered and that denotes a single hard value.
|
NFDimension(short identifier,
short orientation,
java.lang.Object hardValue)
Creates a dimension that is ordered with the specified orientation and a single
hard value.
|
NFDimension(short identifier,
short orientation,
java.lang.Object hardValue,
java.lang.Object softValue)
Creates a dimension that is ordered with the specified orientation under the
specified hard and soft value.
|
Modifier and Type | Method and Description |
---|---|
NFDimension |
copy()
Creates a copy of this dimension.
|
java.lang.Object |
getHardValue()
Returns the hard value.
|
short |
getIdentifier()
Returns the identifier of the dimension.
|
int |
getOrientation()
Returns the orientation of the dimension.
|
java.lang.Object |
getSoftValue()
Returns the soft value.
|
boolean |
isOrdered()
Returns if the dimension is ordered.
|
void |
readObject(IObjectInput input)
Deserializes the object from the stream.
|
java.lang.String |
toString()
Returns a string representation of this dimension.
|
void |
writeObject(IObjectOutput output)
Serializes the object to the stream.
|
public static final java.lang.String ABBREVIATION
public static final short IDENTIFIER_REQUIRED
public static final short IDENTIFIER_ABILITY
public static final short IDENTIFIER_TYPE
public static final short IDENTIFIER_GATEWAY
public static final short ORDERING_ASCENDING
public static final short ORDERING_DESCENDING
public NFDimension()
public NFDimension(short identifier, java.lang.Object hardValue)
identifier
- The id of the dimension.hardValue
- The value of this dimension.public NFDimension(short identifier, short orientation, java.lang.Object hardValue)
identifier
- The identifier of the dimension.hardValue
- The hard value of the dimension.orientation
- The orientation of the dimension. The orientation must
either be ascending or descending.public NFDimension(short identifier, short orientation, java.lang.Object hardValue, java.lang.Object softValue)
identifier
- The identifier of the dimension.hardValue
- The hard value of the dimension.orientation
- The orientation of the dimension.softValue
- The soft value of the dimension.public short getIdentifier()
public boolean isOrdered()
public java.lang.Object getHardValue()
public int getOrientation()
public java.lang.Object getSoftValue()
public void readObject(IObjectInput input) throws java.io.IOException
readObject
in interface ISerializable
input
- The input to read from.java.io.IOException
- Thrown if the deserialization failed.public void writeObject(IObjectOutput output) throws java.io.IOException
writeObject
in interface ISerializable
output
- The output to write to.java.io.IOException
- Thrown if the serialization failed.public NFDimension copy()
public java.lang.String toString()
toString
in class java.lang.Object