fable.io
Class FBMLDuple

java.lang.Object
  extended by fable.io.FBMLDuple

public class FBMLDuple
extends java.lang.Object

This is a duple class that contains the two components of an FBMLfile: The censor as well as the contents

This class is immutable.

Author:
Christopher Moh

Constructor Summary
FBMLDuple(FableComponent contents, FableCensor censor)
          Creates a new FBMLDuple with the desired contents and censor
 
Method Summary
 FableCensor getCensor()
          Gets the censor of this duple
 FableComponent getContents()
          Gets the contents of this duple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FBMLDuple

public FBMLDuple(FableComponent contents,
                 FableCensor censor)
Creates a new FBMLDuple with the desired contents and censor

Parameters:
contents - Contents
censor - Censor
Method Detail

getCensor

public FableCensor getCensor()
Gets the censor of this duple

Returns:
Censor contained in the duple

getContents

public FableComponent getContents()
Gets the contents of this duple

Returns:
Contents contained in the duple