com.japisoft.xmlpad.helper
Class AbstractTagHelper
java.lang.Object
|
+--com.japisoft.xmlpad.helper.AbstractHelper
|
+--com.japisoft.xmlpad.helper.AbstractTagHelper
- All Implemented Interfaces:
- Helper, TagHelper
- Direct Known Subclasses:
- DTDTagHelper, RelaxNGTagHelper, SchemaTagHelper, StaticTagHelper, SystemHelper
- public abstract class AbstractTagHelper
- extends AbstractHelper
- implements TagHelper
Abstract class for tag helper, this class is a facility for managing
TagDescriptor
- Author:
- (c) 2003 JAPISOFT
- See Also:
TagDescriptor,
TagHelper
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTagHelper
public AbstractTagHelper()
addTag
public TagDescriptor addTag(java.lang.String name,
AttDescriptor[] att,
boolean empty)
getTitle
public java.lang.String getTitle()
- Specified by:
getTitle in interface Helper- Overrides:
getTitle in class AbstractHelper
- Returns:
- a title for the helper popup
setLocation
public void setLocation(com.japisoft.fastparser.node.SimpleNode locatedNode,
int offset)
- Set the current location
- Specified by:
setLocation in interface TagHelper- Overrides:
setLocation in class AbstractHelper
getAttributeHelperForNode
public AttributeHelper getAttributeHelperForNode(com.japisoft.fastparser.node.SimpleNode node)
- Returns:
- the attribute helper for this node
addTagDescriptor
public TagDescriptor addTagDescriptor(TagDescriptor tag)
- Description copied from interface:
TagHelper
- add a new descriptor
- Specified by:
addTagDescriptor in interface TagHelper
getTags
public TagDescriptor[] getTags()
- Specified by:
getTags in interface TagHelper
- Returns:
- available tags
setSource
public void setSource(java.lang.String source)
- Reset the schema initial source
getSource
public java.lang.String getSource()
- Specified by:
getSource in interface TagHelper
- Returns:
- the schema initial source