ooc
Class SourceTagHolder

java.lang.Object
  extended byooc.SourceTagHolder
Direct Known Subclasses:
SourceTagHolderJoocDescriptor

public class SourceTagHolder
extends java.lang.Object

Holding tags parsed from a Source. When retrieving tags without global references, the name space is this holder and all holders imported into this source holder.


Constructor Summary
SourceTagHolder(Container container, Source source)
           
 
Method Summary
 boolean containsTag(java.lang.String sourceTagId)
          Returns true if this holder or any imported holder contains the tag with the given tag id, else false.
 Container getContainer()
           
 Source getSource()
           
 java.lang.String getSourceName()
           
 Tag getTag(java.lang.String sourceTagId)
          Returns the tag with the given tag id found in this holder or any imported holder.
 boolean thisHolderContainsTag(java.lang.String sourceTagId)
          Returns true if this holder contains the tag with the given tag id, else false.
 void validate()
          Check so that all tags in this source tag holder are valid..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceTagHolder

public SourceTagHolder(Container container,
                       Source source)
Method Detail

getContainer

public Container getContainer()

getSource

public Source getSource()

getSourceName

public java.lang.String getSourceName()

validate

public void validate()
Check so that all tags in this source tag holder are valid..


thisHolderContainsTag

public boolean thisHolderContainsTag(java.lang.String sourceTagId)
Returns true if this holder contains the tag with the given tag id, else false.

Parameters:
sourceTagId - is the name of the tag combined with defined id, e.i. 'entity::entity'.
Returns:
true if this holder contains the tag with the given tag id, else false.

containsTag

public boolean containsTag(java.lang.String sourceTagId)
Returns true if this holder or any imported holder contains the tag with the given tag id, else false.

Parameters:
sourceTagId - is the name of the tag combined with defined id, e.i. 'entity::entity'.
Returns:
true if this holder or any imported holder contains the tag with the given tag id, else false.

getTag

public Tag getTag(java.lang.String sourceTagId)
Returns the tag with the given tag id found in this holder or any imported holder.

Parameters:
sourceTagId - is the name of the tag.
Returns:
a tag with the given tag id.