classycle
Class NameAndSourceAttributes

java.lang.Object
  extended by classycle.graph.NameAttributes
      extended by classycle.NameAndSourceAttributes
All Implemented Interfaces:
Attributes, java.lang.Comparable
Direct Known Subclasses:
ClassAttributes, PackageAttributes

public abstract class NameAndSourceAttributes
extends NameAttributes

Abstract super class of Attributes with a name and a set of sources.

Author:
Franz-Josef Elmer

Constructor Summary
NameAndSourceAttributes(java.lang.String name)
          Creates an instance for the specified name.
 
Method Summary
protected  void addSource(java.lang.String source)
          Adds the specified source.
protected  void addSourcesOf(NameAndSourceAttributes attributes)
          Adds the source of the specified attributes.
 java.lang.String getSources()
          Returns a comma separated list of sources.
 
Methods inherited from class classycle.graph.NameAttributes
compareTo, getName, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameAndSourceAttributes

public NameAndSourceAttributes(java.lang.String name)
Creates an instance for the specified name. Initially there are no sources.

Method Detail

addSource

protected void addSource(java.lang.String source)
Adds the specified source.


addSourcesOf

protected void addSourcesOf(NameAndSourceAttributes attributes)
Adds the source of the specified attributes.


getSources

public java.lang.String getSources()
Returns a comma separated list of sources.