org.decisiondeck.xmcda_oo.structure.category
Class CatOrProf

java.lang.Object
  extended by org.decisiondeck.xmcda_oo.structure.category.CatOrProf

public class CatOrProf
extends Object

Contains exactly one category or (exclusive or) one profile. Immutable. Unused - to delete.


Constructor Summary
CatOrProf(Alternative profile)
           
CatOrProf(Category category)
           
 
Method Summary
 Category getCategory()
           
 Alternative getProfile()
           
 boolean hasCategory()
           
 boolean hasProfile()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatOrProf

public CatOrProf(Category category)
Parameters:
category - not null.

CatOrProf

public CatOrProf(Alternative profile)
Parameters:
profile - not null.
Method Detail

getCategory

public Category getCategory()

hasCategory

public boolean hasCategory()

hasProfile

public boolean hasProfile()

getProfile

public Alternative getProfile()


Copyright © 2011. All Rights Reserved.