|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.helper.handler.AbstractHelperHandler
com.japisoft.xmlpad.helper.handler.schema.AbstractTagHandler
Common handler for tag handlers
Field Summary | |
boolean |
addedSystemTag
|
protected int |
currentDocumentLocation
|
protected SimpleNode |
currentDocumentNode
|
protected java.lang.String |
lastLocation
|
protected java.lang.String |
location
|
protected java.lang.String[] |
locationPath
|
protected java.lang.String |
namespace
|
Fields inherited from class com.japisoft.xmlpad.helper.handler.AbstractHelperHandler |
descriptors |
Constructor Summary | |
AbstractTagHandler()
|
Method Summary | |
protected boolean |
addSystemTag()
|
TagDescriptor |
addTag(java.lang.String name,
AttDescriptor[] att,
boolean empty)
|
TagDescriptor |
addTagDescriptor(TagDescriptor tag)
|
protected void |
completeContentForElementWithoutPrefix()
Particular case with DTD and namespace |
void |
dispose()
|
void |
fillList(SimpleNode node,
javax.swing.DefaultListModel model)
|
protected void |
flush()
Reset all tags |
protected java.lang.String |
getActivatorSequence()
|
AttributeHelper |
getAttributeHelperForNode(SimpleNode node)
|
protected java.lang.String |
getLostCharacter()
|
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
int |
getPriority()
Here a way to change the order of the handler |
java.lang.String |
getSource()
|
abstract TagDescriptor |
getTag(SimpleNode node)
|
TagDescriptor[] |
getTags()
|
java.lang.String |
getTitle()
|
boolean |
hasElements()
|
boolean |
haveDescriptors(SimpleNode currentNode,
XMLDocument document,
boolean insertBefore,
int offset,
java.lang.String activatorString)
|
protected void |
installDescriptors(XMLDocument document,
int offset,
java.lang.String activatorString)
|
boolean |
mustBeJobSynchronized()
If the assistant must be called a a job for being synchronized with parsing... |
protected void |
notifyLocation()
Prepare for tag list for the current location |
void |
setLocation(SimpleNode locatedNode,
int offset)
Set the current location |
void |
setNamespace(java.lang.String namespace)
|
void |
setSource(java.lang.String source)
Reset the schema initial source |
protected SimpleNode |
translateNode(SimpleNode located)
|
Methods inherited from class com.japisoft.xmlpad.helper.handler.AbstractHelperHandler |
addDescriptor, flushDescriptors, getDefaultIcon, getType, hasDelegateForInsertingResult, insertResult, isEnabled, match, removeDescriptor, resolveContentAssistant, setEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String namespace
protected java.lang.String[] locationPath
protected java.lang.String location
protected java.lang.String lastLocation
protected SimpleNode currentDocumentNode
protected int currentDocumentLocation
public boolean addedSystemTag
Constructor Detail |
public AbstractTagHandler()
Method Detail |
protected java.lang.String getActivatorSequence()
getActivatorSequence
in class AbstractHelperHandler
public void dispose()
dispose
in class AbstractHelperHandler
public int getPriority()
AbstractHelperHandler
getPriority
in class AbstractHelperHandler
public boolean haveDescriptors(SimpleNode currentNode, XMLDocument document, boolean insertBefore, int offset, java.lang.String activatorString)
haveDescriptors
in class AbstractHelperHandler
protected void installDescriptors(XMLDocument document, int offset, java.lang.String activatorString)
installDescriptors
in class AbstractHelperHandler
public java.lang.String getName()
getName
in class AbstractHelperHandler
public boolean mustBeJobSynchronized()
AbstractHelperHandler
mustBeJobSynchronized
in class AbstractHelperHandler
public void setNamespace(java.lang.String namespace)
public java.lang.String getNamespace()
public TagDescriptor addTag(java.lang.String name, AttDescriptor[] att, boolean empty)
public java.lang.String getTitle()
getTitle
in class AbstractHelperHandler
public abstract TagDescriptor getTag(SimpleNode node)
protected SimpleNode translateNode(SimpleNode located)
public void setLocation(SimpleNode locatedNode, int offset)
protected void completeContentForElementWithoutPrefix()
protected void notifyLocation()
public AttributeHelper getAttributeHelperForNode(SimpleNode node)
public TagDescriptor addTagDescriptor(TagDescriptor tag)
protected void flush()
public boolean hasElements()
public TagDescriptor[] getTags()
protected boolean addSystemTag()
public void fillList(SimpleNode node, javax.swing.DefaultListModel model)
protected java.lang.String getLostCharacter()
public void setSource(java.lang.String source)
public java.lang.String getSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |