com.japisoft.xmlpad.helper
Class SyntaxHelper

java.lang.Object
  extended bycom.japisoft.xmlpad.helper.SyntaxHelper

public class SyntaxHelper
extends java.lang.Object

SyntaxHelper This classes is a method factory for finding helper for the current XMLPad context usage. This is for tags or entities.

Version:
1.2
Author:
(c) 2003 JAPISOFT

Constructor Summary
SyntaxHelper()
           
 
Method Summary
 void addTagDescriptor(TagDescriptor tag)
           
 void dispose()
           
 AttributeHelper getAttributeHelper()
           
 EntityHelper getEntityHelper()
           
 SystemHelper getSystemHelper()
           
 TagHelper getTagHelperForLocation(java.lang.String location)
           
 boolean hasTagHelper()
           
 void setDTDContent(java.lang.String rootElement, java.lang.String dtdContent)
          Add support for completion using the DTD content
 void setDTDLocation(DTDMapper mapper, java.lang.String currentDocument, java.lang.String location, java.lang.String rootElement)
          Reset the current DTD location
 void setForcePrefix(java.lang.String prefix)
           
 void setRelaxNGLocation(java.lang.String location)
          Reset the current RelaxNGLocation
 void setSchemaLocation(java.lang.String currentDocument, java.lang.String location, java.lang.String rootElement)
          Reset the current Schema location
 void setSystemHelper(SystemHelper helper)
          Update the current system helper or reset it to null for the default one
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxHelper

public SyntaxHelper()
Method Detail

addTagDescriptor

public void addTagDescriptor(TagDescriptor tag)

dispose

public void dispose()

hasTagHelper

public boolean hasTagHelper()
Returns:
true if a tag helper is available

setRelaxNGLocation

public void setRelaxNGLocation(java.lang.String location)
Reset the current RelaxNGLocation


setSchemaLocation

public void setSchemaLocation(java.lang.String currentDocument,
                              java.lang.String location,
                              java.lang.String rootElement)
Reset the current Schema location


setDTDContent

public void setDTDContent(java.lang.String rootElement,
                          java.lang.String dtdContent)
Add support for completion using the DTD content


setDTDLocation

public void setDTDLocation(DTDMapper mapper,
                           java.lang.String currentDocument,
                           java.lang.String location,
                           java.lang.String rootElement)
Reset the current DTD location


getTagHelperForLocation

public TagHelper getTagHelperForLocation(java.lang.String location)
Returns:
set of Tags definition

getEntityHelper

public EntityHelper getEntityHelper()
Returns:
a set of Entities definition

getSystemHelper

public SystemHelper getSystemHelper()
Returns:
a set of System element

setSystemHelper

public void setSystemHelper(SystemHelper helper)
Update the current system helper or reset it to null for the default one


getAttributeHelper

public AttributeHelper getAttributeHelper()
Returns:
a set of attribute definition

setForcePrefix

public void setForcePrefix(java.lang.String prefix)