fedora.utilities.policyEditor
Class PolicyEditorInputkXML

java.lang.Object
  extended by fedora.utilities.policyEditor.PolicyEditorInputkXML

public class PolicyEditorInputkXML
extends java.lang.Object


Method Summary
protected static void characters(org.xmlpull.v1.XmlPullParser xr)
           
protected static void endAccessElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void endGroupTemplateElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void endResourceElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void endRuledefElement(org.xmlpull.v1.XmlPullParser xr)
           
static java.lang.String htmlescape(java.lang.String s1)
          Turns funky characters into HTML entity equivalents
static java.lang.String htmlunescape(java.lang.String s1)
          Given a string containing entity escapes, returns a string containing the actual Unicode characters corresponding to the escapes.
static void init()
           
protected static void parseMetadata(org.xmlpull.v1.XmlPullParser xr)
           
protected static void startAccessElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void startGroupTemplateElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void startResourceElement(org.xmlpull.v1.XmlPullParser xr)
           
protected static void startRuledefElement(org.xmlpull.v1.XmlPullParser xr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init()

parseMetadata

protected static void parseMetadata(org.xmlpull.v1.XmlPullParser xr)
                             throws org.xmlpull.v1.XmlPullParserException,
                                    java.io.IOException
Throws:
org.xmlpull.v1.XmlPullParserException
java.io.IOException

startResourceElement

protected static void startResourceElement(org.xmlpull.v1.XmlPullParser xr)

endResourceElement

protected static void endResourceElement(org.xmlpull.v1.XmlPullParser xr)

startGroupTemplateElement

protected static void startGroupTemplateElement(org.xmlpull.v1.XmlPullParser xr)

endGroupTemplateElement

protected static void endGroupTemplateElement(org.xmlpull.v1.XmlPullParser xr)

startAccessElement

protected static void startAccessElement(org.xmlpull.v1.XmlPullParser xr)

endAccessElement

protected static void endAccessElement(org.xmlpull.v1.XmlPullParser xr)

startRuledefElement

protected static void startRuledefElement(org.xmlpull.v1.XmlPullParser xr)

endRuledefElement

protected static void endRuledefElement(org.xmlpull.v1.XmlPullParser xr)

characters

protected static void characters(org.xmlpull.v1.XmlPullParser xr)

htmlescape

public static java.lang.String htmlescape(java.lang.String s1)
Turns funky characters into HTML entity equivalents

e.g. "bread" & "butter" => "bread" & "butter". Update: supports nearly all HTML entities, including funky accents. See the source code for more detail.

See Also:
htmlunescape(String)

htmlunescape

public static java.lang.String htmlunescape(java.lang.String s1)
Given a string containing entity escapes, returns a string containing the actual Unicode characters corresponding to the escapes. Note: nasty bug fixed by Helge Tesgaard (and, in parallel, by Alex, but Helge deserves major props for emailing me the fix). 15-Feb-2002 Another bug fixed by Sean Brown

See Also:
htmlescape(String)