站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MIMEProcessor (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor.options
Class MIMEProcessor

java.lang.Object
  extended by org.netbeans.modules.editor.options.MIMEProcessor
All Implemented Interfaces:
InstanceCookie, XMLDataObject.Processor, Node.Cookie
Direct Known Subclasses:
AbbrevsMIMEProcessor, FontsColorsMIMEProcessor, KeyBindingsMIMEProcessor, MacrosMIMEProcessor, PropertiesMIMEProcessor

public abstract class MIMEProcessor
extends Object
implements XMLDataObject.Processor, InstanceCookie

XML Processor for MIME Options settings files

Since:
08/2001

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openide.cookies.InstanceCookie
InstanceCookie.Of
 
Field Summary
protected  XMLDataObject xmlDataObject
          XMLDataObject this processor is linked to.
 
Constructor Summary
MIMEProcessor()
           
 
Method Summary
 void attachTo(XMLDataObject xmlDataObject)
          Attaches this processor to specified xml data object.
abstract  MIMEOptionFile createMIMEOptionFile(BaseOptions o, Object b)
          Creates appropriate MIME Option file
abstract  Class getAsociatedMIMEOptionFile()
          Gets the class of MIMEOption file that handle this XML file type
abstract  String getPublicID()
          Gets DTD's PUBLIC_ID
abstract  String getSystemID()
          Gets DTD's SYSTEM_ID
 XMLDataObject getXMLDataObject()
          Gets XMLDataObject to which this processor is linked to
 Class instanceClass()
          Gets instance class.
 Object instanceCreate()
          Creates instance.
 String instanceName()
          Gets name of instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlDataObject

protected XMLDataObject xmlDataObject
XMLDataObject this processor is linked to.

Constructor Detail

MIMEProcessor

public MIMEProcessor()
Method Detail

attachTo

public void attachTo(XMLDataObject xmlDataObject)
Attaches this processor to specified xml data object. Implements XMLDataObject.Processor interface.

Specified by:
attachTo in interface XMLDataObject.Processor
Parameters:
xmlDataObject - xml data object to which attach this processor

instanceName

public String instanceName()
Gets name of instance. Implements InstanceCookie interface method.

Specified by:
instanceName in interface InstanceCookie
Returns:
name of xmlDataObject

instanceClass

public Class instanceClass()
                    throws IOException,
                           ClassNotFoundException
Gets instance class. Implements InstanceCookie interface method.

Specified by:
instanceClass in interface InstanceCookie
Returns:
MIME specific processor class
Throws:
IOException
ClassNotFoundException

getXMLDataObject

public XMLDataObject getXMLDataObject()
Gets XMLDataObject to which this processor is linked to


getPublicID

public abstract String getPublicID()
Gets DTD's PUBLIC_ID


getSystemID

public abstract String getSystemID()
Gets DTD's SYSTEM_ID


getAsociatedMIMEOptionFile

public abstract Class getAsociatedMIMEOptionFile()
Gets the class of MIMEOption file that handle this XML file type


createMIMEOptionFile

public abstract MIMEOptionFile createMIMEOptionFile(BaseOptions o,
                                                    Object b)
Creates appropriate MIME Option file

Parameters:
o - BaseOptions subClass
b - object of MIMEProcessor

instanceCreate

public Object instanceCreate()
                      throws IOException,
                             ClassNotFoundException
Creates instance. Implements InstanceCookie interface method.

Specified by:
instanceCreate in interface InstanceCookie
Throws:
IOException
ClassNotFoundException

org.netbeans.modules.editor/3 1.32.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.