|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.dsmlv2.ParserUtils
public class ParserUtils
This class is a Helper class for the DSML Parser
| Field Summary | |
|---|---|
static java.lang.String |
BASE64BINARY
|
static java.lang.String |
XML_SCHEMA_INSTANCE_URI
|
static java.lang.String |
XML_SCHEMA_URI
|
static java.lang.String |
XSD
|
static java.lang.String |
XSI
|
| Constructor Summary | |
|---|---|
ParserUtils()
|
|
| Method Summary | |
|---|---|
static void |
addControls(org.dom4j.Element element,
java.util.List<Control> controls)
Adds Controls to the given Element. |
static java.lang.String |
base64Encode(java.lang.Object value)
Encodes the value as a Base64 String |
static java.lang.String |
getXsiTypeAttributeValue(org.xmlpull.v1.XmlPullParser xpp)
Returns the value of the attribute 'type' of the "XMLSchema-instance' namespace if it exists |
static boolean |
isBase64BinaryValue(org.xmlpull.v1.XmlPullParser parser,
java.lang.String attrValue)
Tells is the given value is a Base64 binary value |
static boolean |
isRequestIdNeeded(Dsmlv2Container container)
Indicates if a request ID is needed. |
static boolean |
needsBase64Encoding(java.lang.Object value)
Indicates if the value needs to be encoded as Base64 |
static int |
parseAndVerifyRequestID(java.lang.String attributeValue,
org.xmlpull.v1.XmlPullParser xpp)
Parses and verify the parsed value of the requestID |
static org.dom4j.Document |
styleDocument(org.dom4j.Document document)
XML Pretty Printer XSLT Tranformation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XML_SCHEMA_URI
public static final java.lang.String XML_SCHEMA_INSTANCE_URI
public static final java.lang.String BASE64BINARY
public static final java.lang.String XSI
public static final java.lang.String XSD
| Constructor Detail |
|---|
public ParserUtils()
| Method Detail |
|---|
public static java.lang.String getXsiTypeAttributeValue(org.xmlpull.v1.XmlPullParser xpp)
xpp - the XPP parser to use
public static boolean isBase64BinaryValue(org.xmlpull.v1.XmlPullParser parser,
java.lang.String attrValue)
parser - the XPP parser to useattrValue - the attribute value
public static boolean needsBase64Encoding(java.lang.Object value)
value - the value to check
public static java.lang.String base64Encode(java.lang.Object value)
value - the value to encode
public static int parseAndVerifyRequestID(java.lang.String attributeValue,
org.xmlpull.v1.XmlPullParser xpp)
throws org.xmlpull.v1.XmlPullParserException
attributeValue - the value of the attributexpp - the XmlPullParser
org.xmlpull.v1.XmlPullParserException - if RequestID isn't an Integer and if requestID equals 0
public static void addControls(org.dom4j.Element element,
java.util.List<Control> controls)
element - the element to add the Controls tocontrols - a List of Controls
public static boolean isRequestIdNeeded(Dsmlv2Container container)
throws org.xmlpull.v1.XmlPullParserException
container - the associated container
org.xmlpull.v1.XmlPullParserException - if the batch request has not been parsed yetpublic static org.dom4j.Document styleDocument(org.dom4j.Document document)
document - the Dom4j Document
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||