|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
hr.fer.tel.nims.dsa.server.serviceprofilehandler.ProfileParser
public class ProfileParser
ProfileParser is used to parse and modify client, service or final profiles.
| Constructor Summary | |
|---|---|
ProfileParser()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addParameters(java.lang.String source,
XmlElement existingTag,
java.util.LinkedList insertingTags)
adds parameters from insertingTags list to the profile in the existingTag element |
void |
characters(char[] buf,
int offset,
int len)
handles the characthers event of the SAX parser |
java.lang.String |
editParameters(java.lang.String source,
XmlElement existingTag,
XmlElement newTag)
edits parameters of existing tag and sets them to match new tag element |
void |
endDocument()
handles the end document event of the SAX parser |
void |
endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
handles the end element event of the SAX parser |
java.lang.String |
getParameter(java.lang.String source,
XmlElement existingTag)
returns requested existing tag (if it exists in the source) |
java.lang.String |
getParameterValue(java.lang.String source,
XmlElement existingTag)
returns requested existing tags value |
void |
startDocument()
handles the start document event of the SAX parser |
void |
startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
handles the start element event of the SAX parser |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProfileParser()
| Method Detail |
|---|
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception
public void startElement(java.lang.String namespaceURI,
java.lang.String lName,
java.lang.String qName,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - namespace URIattrs - Default attributes or specified atributeslName - The local name or the empty string if Namespace processing is not being performedqName - The qualified name or the empty string if qualified names are not available
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception
public void endElement(java.lang.String namespaceURI,
java.lang.String sName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - namespace URIsName - the local name or the empty string if Namespace processing is not being performedqName - the qualified XML 1.0 name or the empty string if qualified names are not available
org.xml.sax.SAXException - any SAX exception, possibly wrapping another exception
public void characters(char[] buf,
int offset,
int len)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerbuf - character arrayoffset - the start position in the character arraylen - length of the character array to be used
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception
public java.lang.String addParameters(java.lang.String source,
XmlElement existingTag,
java.util.LinkedList insertingTags)
addParameters in interface ProfileInterfacesource - profile in String formatexistingTag - xml tag that we are looking forinsertingTags - list of tags which are inserted
public java.lang.String editParameters(java.lang.String source,
XmlElement existingTag,
XmlElement newTag)
editParameters in interface ProfileInterfacesource - profile in String formatexistingTag - xml tag that we are looking fornewTag - xml tag that replaces the existing tag
public java.lang.String getParameter(java.lang.String source,
XmlElement existingTag)
getParameter in interface ProfileInterfacesource - profile in String formatxml - tag that we are looking for
public java.lang.String getParameterValue(java.lang.String source,
XmlElement existingTag)
getParameterValue in interface ProfileInterfaceprofile - in String formatexistingTag - xml tag that we are looking for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||