org.netbeans.modules.editor/3 1.42.0 3

org.netbeans.modules.editor.options
Class AnnotationTypeProcessor

java.lang.Object
  extended by org.netbeans.modules.editor.options.AnnotationTypeProcessor
All Implemented Interfaces:
InstanceCookie, XMLDataObject.Processor, Node.Cookie

public class AnnotationTypeProcessor
extends Object
implements XMLDataObject.Processor, InstanceCookie

Processor of the XML file. The result of parsing is instance of AnnotationType class.

Since:
07/2001

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openide.cookies.InstanceCookie
InstanceCookie.Of
 
Constructor Summary
AnnotationTypeProcessor()
           
 
Method Summary
 void attachTo(FileObject xmlDO)
           
 void attachTo(XMLDataObject xmlDO)
          When the XMLDataObject creates new instance of the processor, it uses this method to attach the processor to the data object.
 Class instanceClass()
          The representation type that may be created as instances.
 Object instanceCreate()
          Create an instance.
 String instanceName()
          The bean name for the instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTypeProcessor

public AnnotationTypeProcessor()
Method Detail

attachTo

public void attachTo(XMLDataObject xmlDO)
When the XMLDataObject creates new instance of the processor, it uses this method to attach the processor to the data object.

Specified by:
attachTo in interface XMLDataObject.Processor
Parameters:
xmlDO - XMLDataObject

attachTo

public void attachTo(FileObject xmlDO)

instanceCreate

public Object instanceCreate()
                      throws IOException,
                             ClassNotFoundException
Create an instance.

Specified by:
instanceCreate in interface InstanceCookie
Returns:
the instance of type instanceClass()
Throws:
IOException - if an I/O error occured
ClassNotFoundException - if a class was not found

instanceClass

public Class instanceClass()
The representation type that may be created as instances. Can be used to test whether the instance is of an appropriate class without actually creating it.

Specified by:
instanceClass in interface InstanceCookie
Returns:
the representation class of the instance
Throws:
IOException - if an I/O error occurred
ClassNotFoundException - if a class was not found

instanceName

public String instanceName()
The bean name for the instance.

Specified by:
instanceName in interface InstanceCookie
Returns:
the name

org.netbeans.modules.editor/3 1.42.0 3

Built on November 20 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.