org.dishevelled.codegen
Class Role

java.lang.Object
  extended by org.dishevelled.codegen.Role

public final class Role
extends Object

A role for an attribute or association.

Version:
$Revision: 972 $ $Date: 2011-01-04 21:34:39 -0600 (Tue, 04 Jan 2011) $
Author:
Michael Heuer

Constructor Summary
Role(String name)
          Create a new role with the specified name.
Role(String lower, String mixed, String upper, String description)
          Create a new role from the specified parameters.
 
Method Summary
 String getDescription()
          Return the description for this role.
 String getLower()
          Return the lowercase name for this role.
 String getMixed()
          Return the mixed-case name for this role.
 String getUpper()
          Return the uppercase name for this role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Role

public Role(String name)
Create a new role with the specified name.

Parameters:
name - role name

Role

public Role(String lower,
            String mixed,
            String upper,
            String description)
Create a new role from the specified parameters.

Parameters:
lower - lowercase name for this role
mixed - mixed-case name for this role
upper - uppercase name for this role
description - description for this role
Method Detail

getLower

public String getLower()
Return the lowercase name for this role.

Returns:
the lowercase name for this role

getMixed

public String getMixed()
Return the mixed-case name for this role.

Returns:
the mixed-case name for this role

getUpper

public String getUpper()
Return the uppercase name for this role.

Returns:
the uppercase name for this role

getDescription

public String getDescription()
Return the description for this role.

Returns:
the description for this role


Copyright (c) 2004-2011 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).