org.eclipse.jet.compiler
Class TagLibraryUsageManager
java.lang.Object
org.eclipse.jet.compiler.TagLibraryUsageManager
Deprecated. Since 0.8.0, use
TagLibraryUsageManager
-
public class TagLibraryUsageManager
- extends java.lang.Object
A class to manage usage of tag libraries in a JET2 template.
Method Summary
|
void
|
add
(java.lang.String prefix,
java.lang.String libraryId)
Deprecated. Defined a prefix for a tag library id. |
boolean
|
canDefinePrefix
(java.lang.String prefix,
java.lang.String id)
Deprecated. Test whether a prefix can be created. |
java.lang.String[]
|
getKnownTagNames
()
Deprecated. |
java.lang.String
|
getLibraryIdFromPrefix
(java.lang.String prefix)
Deprecated. |
TagDefinition
|
getTagDefinition
(java.lang.String tagName)
Deprecated. Return the TagDefinition of the selected tag. |
TagLibraryReference[]
|
getTagLibraryReferences
()
Deprecated. |
boolean
|
isKnownInvalidTagName
(java.lang.String tagName)
Deprecated. Test whether the tag name passed is known to be an invalid name by the manager. |
boolean
|
isKnownTag
(java.lang.String tagName)
Deprecated. Test whether the tag name passed is know to this manager |
boolean
|
isLibraryDefined
(java.lang.String libaryId)
Deprecated. |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
TagLibraryUsageManager
public TagLibraryUsageManager(java.util.Map predefinedLibraryMap)
-
Deprecated.
-
Parameters:
-
predefinedLibraryMap
- a map of predefined prefixes and their tag libary ids.
canDefinePrefix
public boolean canDefinePrefix(java.lang.String prefix,
java.lang.String id)
-
Deprecated.
- Test whether a prefix can be created.
Conditions where this can succeed:
- prefix is not defined in either the predefined library map or the library map.
-
-
Parameters:
-
prefix
- a prefix -
id
- the tag libary id.
-
Returns:
-
true
if the prefix can be created.
isLibraryDefined
public boolean isLibraryDefined(java.lang.String libaryId)
-
Deprecated.
-
getLibraryIdFromPrefix
public java.lang.String getLibraryIdFromPrefix(java.lang.String prefix)
-
Deprecated.
-
add
public void add(java.lang.String prefix,
java.lang.String libraryId)
-
Deprecated.
- Defined a prefix for a tag library id. If a prefix for the tag library id
is already defined in the predefined librarys map, then that prefix is removed.
-
-
Parameters:
-
prefix
- a prefix -
libraryId
- a library id
getTagDefinition
public
TagDefinition getTagDefinition(java.lang.String tagName)
-
Deprecated.
- Return the TagDefinition of the selected tag.
-
-
Parameters:
-
tagName
- the QName of the tag
-
Returns:
- the TagDefinition
isKnownTag
public boolean isKnownTag(java.lang.String tagName)
-
Deprecated.
- Test whether the tag name passed is know to this manager
-
-
Returns:
-
true
if the tag matches one of the libraries, false
otherwise.
isKnownInvalidTagName
public boolean isKnownInvalidTagName(java.lang.String tagName)
-
Deprecated.
- Test whether the tag name passed is known to be an invalid name by the manager. The tag name
is known to be invalid if it has a known prefix, but an unknown unqualified tag name.
-
-
Returns:
-
true
if the tag matches one of the libraries, false
otherwise.
getTagLibraryReferences
public
TagLibraryReference[] getTagLibraryReferences()
-
Deprecated.
-
getKnownTagNames
public java.lang.String[] getKnownTagNames()
-
Deprecated.
-