org.netbeans.modules.editor.fold/1 1.5.22

org.netbeans.api.editor.fold
Class FoldType

java.lang.Object
  extended by org.netbeans.api.editor.fold.FoldType

public final class FoldType
extends Object

Each Fold is identified by its fold type.
Each fold type presents a fold type acceptor as well accepting just itself.

As the equals() method is declared final (delegating to super) the fold types can directly be compared by using == operator.

Fold providers should export all the fold types that they provide in their APIs so that the clients can use these fold types in operations with the fold hierarchy.


Constructor Summary
FoldType(String description)
          Construct fold type with the given description.
 
Method Summary
 boolean accepts(FoldType type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FoldType

public FoldType(String description)
Construct fold type with the given description.

Parameters:
description - textual description of the fold type. Two fold types with the same description are not equal.
Method Detail

accepts

public boolean accepts(FoldType type)

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.editor.fold/1 1.5.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.