|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectooc.SourceContextAbstract
ooc.SourceContextDirectory
Given an absolute path to a file, it can always be divided up into two parts. For following example where the absolute path '/home/my_home/dev/def.xml' can be divided up into following pairs
Field Summary | |
static java.lang.String |
NAME
Contains the default name of this context which is 'current_directory'. |
Constructor Summary | |
SourceContextDirectory()
Constructs a context with current directory as the directory and the name as 'current_directory'. |
|
SourceContextDirectory(java.io.File directory,
java.lang.String name)
Constructs a context with given directory and name. |
Method Summary | |
Source |
createSource(java.lang.String sourceName)
Returns a newly created source from which tags can be parsed. |
boolean |
isSourceInContext(java.lang.String sourceName)
Returns true if the given source exists in this contexts. |
Methods inherited from class ooc.SourceContextAbstract |
getName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String NAME
Constructor Detail |
public SourceContextDirectory()
public SourceContextDirectory(java.io.File directory, java.lang.String name)
directory
- is the directory for this context.name
- is the name of this context.Method Detail |
public boolean isSourceInContext(java.lang.String sourceName)
SourceContext
public Source createSource(java.lang.String sourceName)
SourceContext
sourceName
- is the name of the source created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |