@documentica/webdav
Version:
Documentica Webdav Client
30 lines (29 loc) • 1.01 kB
TypeScript
import { IDavCodec, IDavCodecsNamespace, ExtChildNode } from './types';
export interface IProperty {
getParsedValue: () => any;
xmlvalue?: NodeList;
tagname: string;
}
export declare const codecs: IDavCodecsNamespace;
export declare const registerCodec: ({ tagname, namespace, codec }: {
tagname: string;
namespace: string;
codec: IDavCodec;
}) => void;
export default class Property implements IProperty {
_xmlvalue?: NodeList;
_errors?: Node[];
namespace: string;
tagname: string;
status: any;
responsedescription?: string;
constructor(xmlNode?: ExtChildNode, status?: any, responsedescription?: string, errors?: Node[]);
set xmlvalue(value: NodeList | undefined);
get xmlvalue(): NodeList | undefined;
setValueAndRebuildXml(value: string): void;
getParsedValue(): any;
addError(error: Node): this;
getErrors(): Node[] | undefined;
toString(): any;
static NewProperty(namespace: string, tagname: string, value: any): Property;
}