|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.comarquage.util.localnodes.XslXalanExtension
public class XslXalanExtension
This class is called by the xsl stylesheet "ajout_local.xsl". It is responsible for adding to the public xml stream the local themes/cards that where referenced by the deamon.
| Constructor Summary | |
|---|---|
XslXalanExtension()
|
|
| Method Summary | |
|---|---|
void |
addTitle(java.lang.StringBuffer buf,
java.lang.String strKeyPathTemp,
java.lang.String strKeyTemp,
java.lang.String strSubTitle,
java.lang.String strChildNodeName)
Method called to add one line of path |
void |
completePathInfo(java.lang.StringBuffer buf,
java.lang.String strKeyPathTemp,
java.lang.String strKeyTemp,
java.util.Map<java.lang.String,java.lang.String> mapLocalCard,
java.lang.String strChildNodeName,
java.util.ArrayList<java.util.ArrayList<java.lang.String>> arKeyResult)
Method called to complete missing line path |
java.lang.String |
createPath(java.util.List<java.lang.String> arKeyTemp)
Create path using arraylist |
java.lang.String |
nodesAttached(org.apache.xalan.extensions.ExpressionContext context,
java.lang.String strThemeId,
java.lang.String strPluginName)
Method called from the xsl stylesheet and that performs the addintion of the local nodes to the xml stream. |
java.lang.String |
resolvePath(org.apache.xalan.extensions.ExpressionContext context,
java.lang.String initialKey,
org.w3c.dom.Node node,
java.lang.String strPluginName)
Method called from the xsl stylesheet and that performs the creation of the path |
void |
suppKey(java.util.List<java.util.ArrayList<java.lang.String>> arKeyResult,
java.lang.String strKeyTemp)
Delete key in an arrayList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XslXalanExtension()
| Method Detail |
|---|
public java.lang.String nodesAttached(org.apache.xalan.extensions.ExpressionContext context,
java.lang.String strThemeId,
java.lang.String strPluginName)
context - the expression contextstrThemeId - the id of the current theme (where local nodes might have to be addedstrPluginName - the plugin name
public java.lang.String resolvePath(org.apache.xalan.extensions.ExpressionContext context,
java.lang.String initialKey,
org.w3c.dom.Node node,
java.lang.String strPluginName)
throws javax.xml.transform.TransformerException
context - the expression contextinitialKey - the id paramater (node or card asked)node - path node containing all paths availablestrPluginName - the plugin name
javax.xml.transform.TransformerException - exception during path resolvingpublic java.lang.String createPath(java.util.List<java.lang.String> arKeyTemp)
arKeyTemp - arrayList of keys
public void addTitle(java.lang.StringBuffer buf,
java.lang.String strKeyPathTemp,
java.lang.String strKeyTemp,
java.lang.String strSubTitle,
java.lang.String strChildNodeName)
buf - result stringBufferstrKeyPathTemp - value of attribute id of the node createdstrKeyTemp - value of attribute key of the node createdstrSubTitle - value of attribute title of the node createdstrChildNodeName - local name of the node created
public void completePathInfo(java.lang.StringBuffer buf,
java.lang.String strKeyPathTemp,
java.lang.String strKeyTemp,
java.util.Map<java.lang.String,java.lang.String> mapLocalCard,
java.lang.String strChildNodeName,
java.util.ArrayList<java.util.ArrayList<java.lang.String>> arKeyResult)
buf - result StringBufferstrKeyPathTemp - value of attribute id of the node createdstrKeyTemp - keymapLocalCard - map of local cardsstrChildNodeName - local name of the node createdarKeyResult - arrayList of keys
public void suppKey(java.util.List<java.util.ArrayList<java.lang.String>> arKeyResult,
java.lang.String strKeyTemp)
arKeyResult - arrayList of keysstrKeyTemp - key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||