|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectooc.Container
The container. As default it uses the contexts SourceContextFile
,
SourceContextDirectory
, and SourceContextClassPath
when looking for sources.
Constructor Summary | |
Container()
Constructs an container with only the Jooc descriptor loaded. |
|
Container(java.io.File sourceFile)
Constructs a container using a file descriptor. |
|
Container(SourceContext context)
Constructs an container with only the Jooc descriptor loaded. |
|
Container(java.lang.String sourceName)
Constructs the container and then loads given source, looking for it in the classpath, current directory, and as a file. |
Method Summary | |
void |
addContext(SourceContext sourceContext)
Add the given context to this container. |
boolean |
containsTag(java.lang.String sourceTagId)
Returns true if this container has a tag with the given tag id, else false. |
Tag |
getTag(java.lang.String sourceTagId)
Returns a tag with the given tag id. |
SourceTagHolder |
loadSource(Source source)
Loading the given source. |
SourceTagHolder |
loadSource(java.lang.String sourceName)
Loading the given source. |
SourceTagHolder |
loadSource(java.lang.String sourceName,
java.lang.String sourceContextNames)
Loading the given source. |
TagErrorHandler |
validate()
Check so that all tags in this container are valid. |
java.lang.String |
validateToString()
Check so that all tags in this container are valid. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Container()
public Container(SourceContext context)
public Container(java.io.File sourceFile)
sourceFile
- is the file descriptor.public Container(java.lang.String sourceName)
sourceName
- is the name of the sourceMethod Detail |
public void addContext(SourceContext sourceContext)
sourceContext
- is the context to be added.public SourceTagHolder loadSource(java.lang.String sourceName)
sourceName
- is the name of the sourcepublic SourceTagHolder loadSource(java.lang.String sourceName, java.lang.String sourceContextNames)
sourceName
- is the name of the source.sourceContextNames
- is a comma separated list of context names.public SourceTagHolder loadSource(Source source)
source
- is the source to be loaded.public java.lang.String validateToString()
public TagErrorHandler validate()
public boolean containsTag(java.lang.String sourceTagId)
sourceTagId
- is the name of the tag combined with defined id,
e.i. 'entity::entity'.
public Tag getTag(java.lang.String sourceTagId)
sourceTagId
- is the name of the tag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |