com.cinnabarsystems.clm
Class LicenseElement

java.lang.Object
  extended by com.cinnabarsystems.clm.LicenseElement
Direct Known Subclasses:
Feature, License, Licensee

public abstract class LicenseElement
extends Object

Base class for data elements comprising a license specification. Each LicenseElement contains a name of the element, along with a collection of zero or more Attributes pertaining to the LicenseElement.


Method Summary
 Attribute getAttribute(String name)
          Get the Attribute object for the given attribute name.
 Collection getAttributes()
          Get all the Attributes for this LicenseElement.
 String getName()
          Get the name of this element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Get the name of this element. The interpretation of the name varies based on the subclass of LicenseElement in question.

Returns:
the name of this element

getAttribute

public Attribute getAttribute(String name)
Get the Attribute object for the given attribute name.

Parameters:
name - the name of the attribute
Returns:
the Attribute object for the named attribute, or null if no such attribute is present for this LicenseElement.

getAttributes

public Collection getAttributes()
Get all the Attributes for this LicenseElement.

Returns:
a Collection of Attribute objects