| java.lang.Object com.flexive.shared.structure.FxTypeRelation
All known Subclasses: com.flexive.shared.structure.FxTypeRelationEdit,
FxTypeRelation | public class FxTypeRelation implements Serializable(Code) | | Extension of FxType to hold relation mappings
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
Constructor Summary | |
public | FxTypeRelation(FxType source, FxType destination, int maxSource, int maxDestination) Constructor, only used internally. |
maxDestination | protected int maxDestination(Code) | | |
maxSource | protected int maxSource(Code) | | |
FxTypeRelation | public FxTypeRelation(FxType source, FxType destination, int maxSource, int maxDestination)(Code) | | Constructor, only used internally.
Update relation mappings using FxTypeEdit!
Parameters: source - source type Parameters: destination - destination type Parameters: maxSource - maximum number of allowed source instances, unlimited if 0 Parameters: maxDestination - maximum number of allowed destination instances, unlimited if 0 |
equals | public boolean equals(Object o)(Code) | | Overrides Objet's eqials method.
Compares two relations for same source and destination,
comparing multiplicites is intentionally neglected
this.getSource().getId() == other.getSource().getId() &&this.getDestination().getId() == other.getDestination().getId() |
equalsCompletely | public boolean equalsCompletely(Object o)(Code) | | |
getDestination | public FxType getDestination()(Code) | | Get the destination FxType
Destination FxType |
getMaxDestination | public int getMaxDestination()(Code) | | Get the maximum number of allowed destination instances, unlimited if 0
maximum number of allowed destination instances, unlimited if 0 |
getMaxSource | public int getMaxSource()(Code) | | Get the maximum number of allowed source instances, unlimited if 0
maximum number of allowed source instances, unlimited if 0 |
getSource | public FxType getSource()(Code) | | Get the source FxType
Source FxType |
hashCode | public int hashCode()(Code) | | |
isDestinationLimited | public boolean isDestinationLimited()(Code) | | Is there a limit on destination instances?
limit on destination instances? |
isSourceLimited | public boolean isSourceLimited()(Code) | | Is there a limit on source instances?
limit on source instances? |
|
|