net.sf.quarrel.file
Class ElementImpl

java.lang.Object
  extended bynet.sf.quarrel.file.ElementImpl
All Implemented Interfaces:
FileElement

public final class ElementImpl
extends java.lang.Object
implements FileElement

The default implementation of the FileElement interface.


Constructor Summary
ElementImpl(java.lang.String name, ElementType type, java.util.Map features)
           
 
Method Summary
 ElementType getElementType()
          Returns the type of the element
 java.util.Collection getFeatures(FeatureType featureType)
          Returns a collection (copy) of String objects listing the set of features of the type specified.
 java.lang.String getName()
          Returns the name of the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementImpl

public ElementImpl(java.lang.String name,
                   ElementType type,
                   java.util.Map features)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: FileElement
Returns the name of the element.

Specified by:
getName in interface FileElement
Returns:

getElementType

public ElementType getElementType()
Description copied from interface: FileElement
Returns the type of the element

Specified by:
getElementType in interface FileElement
Returns:

getFeatures

public java.util.Collection getFeatures(FeatureType featureType)
Description copied from interface: FileElement
Returns a collection (copy) of String objects listing the set of features of the type specified. Will be an empty list if there are no instances of the feature type.

Specified by:
getFeatures in interface FileElement
Parameters:
featureType -
Returns:


Copyright © 2006-2007. All Rights Reserved.