Fields Summary |
---|
private Stack | frameStack |
protected FrameHolder | frameHolder |
public static final String | CLUSTER |
public static final String | CONFIG |
public static final String | CONFIG_REF |
public static final String | NAME |
public static final String | NAMESPACE |
public static final String | SERVER |
public static final String | SERVER_REF |
public static final String | SYSTEM_PROPERTY |
public static final String | VALUE |
Methods Summary |
---|
Frame | currentFrame()
return (Frame) frameStack.peek();
|
public void | endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
if (isConfigEvent(localName) || isServerEvent(localName) || isClusterEvent(localName)){
frameStack.pop();
}
super.endElement(namespaceURI, localName, qName);
|
protected Frame | getClusterFrame(org.xml.sax.Attributes atts)
return frameHolder.getClusterFrame(getFrameName(atts));
|
protected Frame | getConfigFrame(org.xml.sax.Attributes atts)
return frameHolder.getConfigFrame(getFrameName(atts));
|
FrameHolder | getFrameHolder()
return frameHolder;
|
private java.lang.String | getFrameName(org.xml.sax.Attributes atts)
return atts.getValue(NAMESPACE, NAME);
|
protected Frame | getServerFrame(org.xml.sax.Attributes atts)
return frameHolder.getServerFrame(getFrameName(atts));
|
private void | handleStartClusterEvent(org.xml.sax.Attributes atts)
frameStack.push(getClusterFrame(atts));
|
private void | handleStartConfigEvent(org.xml.sax.Attributes atts)
frameStack.push(getConfigFrame(atts));
|
private void | handleStartServerEvent(org.xml.sax.Attributes atts)
frameStack.push(getServerFrame(atts));
|
protected void | handleStartServerRefEvent(org.xml.sax.Attributes atts)
|
private void | handleSystemPropertyEvent(org.xml.sax.Attributes atts)
currentFrame().put(atts.getValue(NAMESPACE, NAME), atts.getValue(NAMESPACE, VALUE));
|
private boolean | isClusterEvent(java.lang.String n)
return n.equals(CLUSTER);
|
private boolean | isConfigEvent(java.lang.String n)
return n.equals(CONFIG);
|
private boolean | isServerEvent(java.lang.String n)
return n.equals(SERVER);
|
private boolean | isServerRefEvent(java.lang.String n)
return n.equals(SERVER_REF);
|
private boolean | isSystemPropertyElement(java.lang.String n)
return n.equals(SYSTEM_PROPERTY);
|
public void | startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
if (isSystemPropertyElement(localName)){
handleSystemPropertyEvent(atts);
} else if (isConfigEvent(localName)) {
handleStartConfigEvent(atts);
} else if (isServerEvent(localName)) {
handleStartServerEvent(atts);
} else if (isClusterEvent(localName)) {
handleStartClusterEvent(atts);
} else if (isServerRefEvent(localName)) {
handleStartServerRefEvent(atts);
}
super.startElement(namespaceURI, localName, qName, atts);
|