Package io.milton.http.values
Interface ValueWriter
- All Known Implementing Classes:
AddressDataTypeListValueWriter,BooleanValueWriter,CDataValueWriter,DateValueWriter,HrefListValueWriter,ModifiedDateValueWriter,PriviledgeListValueWriter,PropFindResponseListWriter,ResourceTypeValueWriter,SupportedLocksValueWriter,SupportedReportSetWriter,ToStringValueWriter,UUIDValueWriter,WrappedHrefWriter
public interface ValueWriter
An implementation of ValueWriter will generate xml for some particular property
or type, and be able to parse proppatch textual values into its typed form
Generally ValueWriter's should be symmetrical, in that they can parse what
they generate.
- Author:
- brad
-
Method Summary
Modifier and TypeMethodDescriptionParse the given textual representation, probably from a PROPPATCH requestbooleanDoes this ValueWriter support the data type or property for writing xmlvoidwriteValue(XmlWriter writer, String nsUri, String prefix, String localName, Object val, String href, Map<String, String> nsPrefixes) Write the value out to XML using the given XmlWriter
-
Method Details
-
supports
Does this ValueWriter support the data type or property for writing xml- Parameters:
prefix-nsUri-localName-val-- Returns:
-
writeValue
void writeValue(XmlWriter writer, String nsUri, String prefix, String localName, Object val, String href, Map<String, String> nsPrefixes) Write the value out to XML using the given XmlWriter- Parameters:
writer-nsUri-prefix-localName-val-href-nsPrefixes-
-
parse
Parse the given textual representation, probably from a PROPPATCH request- Parameters:
namespaceURI-localPart-value-- Returns:
-