com.flexive.shared.structure
Class FxTypeRelationEdit

java.lang.Object
  extended by com.flexive.shared.structure.FxTypeRelation
      extended by com.flexive.shared.structure.FxTypeRelationEdit
All Implemented Interfaces:
java.io.Serializable

public class FxTypeRelationEdit
extends FxTypeRelation
implements java.io.Serializable

Editable FxTypeRelation

Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
FxTypeRelation, Serialized Form

Field Summary
 
Fields inherited from class com.flexive.shared.structure.FxTypeRelation
maxDestination, maxSource
 
Constructor Summary
FxTypeRelationEdit(FxTypeRelation relation)
          Constructor
 
Method Summary
static FxTypeRelationEdit createNew(FxType source, FxType destination)
          Create a new FxTypeEdit with unlimited source and destination instances
static FxTypeRelationEdit createNew(FxType source, FxType destination, long maxSource, long maxDestination)
          Create a new FxTypeEdit
 boolean isChanged()
           
 void setMaxDestination(long maxDestination)
           
 void setMaxSource(long maxSource)
           
 
Methods inherited from class com.flexive.shared.structure.FxTypeRelation
asEditable, equals, equalsCompletely, getDestination, getMaxDestination, getMaxSource, getSource, hashCode, isDestinationLimited, isSourceLimited, resolveReferences
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxTypeRelationEdit

public FxTypeRelationEdit(FxTypeRelation relation)
Constructor

Parameters:
relation - the FxTypeRelation to make editable
Method Detail

setMaxSource

public void setMaxSource(long maxSource)

setMaxDestination

public void setMaxDestination(long maxDestination)

isChanged

public boolean isChanged()

createNew

public static FxTypeRelationEdit createNew(FxType source,
                                           FxType destination)
Create a new FxTypeEdit with unlimited source and destination instances

Parameters:
source - source type
destination - destination type
Returns:
FxTypeRelationEdit

createNew

public static FxTypeRelationEdit createNew(FxType source,
                                           FxType destination,
                                           long maxSource,
                                           long maxDestination)
Create a new FxTypeEdit

Parameters:
source - source type
destination - destination type
maxSource - maximum number of allowed source instances, unlimited if 0
maxDestination - maximum number of allowed destination instances, unlimited if 0
Returns:
FxTypeRelationEdit