Drools :: Eclipse :: Guvnor tools 6.2.0.Beta3

org.guvnor.tools.utils
Class StringStorage

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.guvnor.tools.utils.StringStorage
All Implemented Interfaces:
org.eclipse.core.resources.IStorage, org.eclipse.core.runtime.IAdaptable

public class StringStorage
extends org.eclipse.core.runtime.PlatformObject
implements org.eclipse.core.resources.IStorage

Stores a string for in-memory editing.


Constructor Summary
StringStorage(String contents, String name)
           
 
Method Summary
 InputStream getContents()
           
 org.eclipse.core.runtime.IPath getFullPath()
           
 String getName()
           
 boolean isReadOnly()
           
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

StringStorage

public StringStorage(String contents,
                     String name)
Method Detail

getContents

public InputStream getContents()
                        throws org.eclipse.core.runtime.CoreException
Specified by:
getContents in interface org.eclipse.core.resources.IStorage
Throws:
org.eclipse.core.runtime.CoreException

getFullPath

public org.eclipse.core.runtime.IPath getFullPath()
Specified by:
getFullPath in interface org.eclipse.core.resources.IStorage

getName

public String getName()
Specified by:
getName in interface org.eclipse.core.resources.IStorage

isReadOnly

public boolean isReadOnly()
Specified by:
isReadOnly in interface org.eclipse.core.resources.IStorage

Drools :: Eclipse :: Guvnor tools 6.2.0.Beta3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.