public class WDProperties extends Object
Attributes on the property element are persisted by mapping from/to repository property attributes. As the XML format used in WebDAV allows namespaced property names, while the repository only allows simple names, the following mapping is used: name=value as is xml:localName=value as is xmlns:prefix value as is prefix:localName=value {namespaceUri}localName=value and xmlns:prefix=namespaceUri Copyright (c) SAP AG 2001-2005
Constructor and Description |
---|
WDProperties() |
Modifier and Type | Method and Description |
---|---|
static void |
appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
DateFormat df,
IHierarchicalUri baseUri) |
static void |
appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
DateFormat df,
IHierarchicalUri baseUri,
boolean includeHiddenFlag)
Add a Property definition as child of an element.
|
static void |
appendPropertyValue(Element parent,
IProperty prop,
DateFormat df,
boolean includeHiddenFlag) |
static void |
appendPropertyValue(Element parent,
IProperty prop,
DateFormat df,
IHierarchicalUri baseUri,
boolean includeHiddenFlag)
Add a Property Value as child of an element.
|
static IMutableProperty |
getProperty(IPropertyName pname,
Element e,
DateFormat df,
IHierarchicalUri baseUri,
boolean tolerateTypeError)
Create a Property from its XML/WebDAV serialization.
|
static IMutableProperty |
getProperty(IPropertyName pname,
PropertyType pt,
Element e,
DateFormat df)
Create a Property from its XML/WebDAV serialization.
|
static void |
setElementAttributes(Element elem,
IProperty property) |
public static void setElementAttributes(Element elem, IProperty property) throws ResourceException
ResourceException
public static void appendProperty(Element parent, IPropertyName pname, IProperty prop, DateFormat df, IHierarchicalUri baseUri, boolean includeHiddenFlag) throws ResourceException
parent
- where to append property elementpname
- name to use for propertyprop
- the property to adddf
- date format object to usebaseUri
- no descriptionincludeHiddenFlag
- no descriptionResourceException
- when property is not validpublic static void appendProperty(Element parent, IPropertyName pname, IProperty prop, DateFormat df, IHierarchicalUri baseUri) throws ResourceException
ResourceException
public static void appendPropertyValue(Element parent, IProperty prop, DateFormat df, boolean includeHiddenFlag) throws ResourceException
ResourceException
public static void appendPropertyValue(Element parent, IProperty prop, DateFormat df, IHierarchicalUri baseUri, boolean includeHiddenFlag) throws ResourceException
parent
- where to append property value and set attributes onprop
- the property to addincludeHiddenFlag
- no descriptionbaseUri
- no descriptiondf
- date format object to useResourceException
- when property is not validpublic static IMutableProperty getProperty(IPropertyName pname, Element e, DateFormat df, IHierarchicalUri baseUri, boolean tolerateTypeError) throws ParseException, ResourceException
pname
- the name to use in the propertye
- the element with the property name in WebDAV XML serializationbaseUri
- no descriptiondf
- date formattertolerateTypeError
- when set to true
, tolerate errors
in parsing data types and fall back to simple types like string or XML.null
ParseException
- no descriptionResourceException
- no descriptionpublic static IMutableProperty getProperty(IPropertyName pname, PropertyType pt, Element e, DateFormat df) throws ParseException, ResourceException
pname
- the name to use in the propertypt
- the property type to usee
- the element with the property name in WebDAV XML serializationdf
- date formatternull
ParseException
- no descriptionResourceException
- no descriptionAccess Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice