com.sap.netweaver.bc.serialize.util

Class PropertiesCoder

java.lang.Object
  extended by com.sap.netweaver.bc.serialize.util.PropertiesCoder

public final class PropertiesCoder
extends Object

Encodes/Decodes properties of a resource to a format that can be used for writing/reading the properties from an XML-source

Copyright 2004 SAP AG


Nested Class Summary
static class PropertiesCoder.PropertiesDecodeException
           
 
Field Summary
static String ATTR_COUNT
           
static String ATTR_VALUE
           
static String TAG_PROP_SERVICE
           
static String TAG_PROPERTIES
           
static String TAG_PROPERTY
           
static String TAG_PROPERTY_SIZE
           
static String TAG_PROPERTY_VALUE
           
static Set TAGS
           
 
Constructor Summary
PropertiesCoder()
           
 
Method Summary
static IProperty decode(Attributes attr, List values)
          Decodes a property from the data in the XML-file
static Properties getDefinition(IProperty prop)
          Writes out all definition parts of the property into the returned Properties instance
static List getValues(IProperty prop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_PROP_SERVICE

public static final String TAG_PROP_SERVICE
See Also:
Constant Field Values

TAG_PROPERTIES

public static final String TAG_PROPERTIES
See Also:
Constant Field Values

TAG_PROPERTY

public static final String TAG_PROPERTY
See Also:
Constant Field Values

TAG_PROPERTY_VALUE

public static final String TAG_PROPERTY_VALUE
See Also:
Constant Field Values

TAG_PROPERTY_SIZE

public static final String TAG_PROPERTY_SIZE
See Also:
Constant Field Values

ATTR_VALUE

public static final String ATTR_VALUE
See Also:
Constant Field Values

ATTR_COUNT

public static final String ATTR_COUNT
See Also:
Constant Field Values

TAGS

public static final Set TAGS
Constructor Detail

PropertiesCoder

public PropertiesCoder()
Method Detail

getDefinition

public static Properties getDefinition(IProperty prop)
Writes out all definition parts of the property into the returned Properties instance

Parameters:
prop - the property of a resource to encode, must not be null
Returns:
a Properties instance holding the definition

getValues

public static List getValues(IProperty prop)
Parameters:
prop - the property to retrieve the value(s) of. Must not be null.
Returns:
the values of the list as String objects. If the property is of type DATE, this value is transformed using the DateTimeFormat.format() method. This list might be empty, but never null

decode

public static IProperty decode(Attributes attr,
                               List values)
                        throws ResourceException
Decodes a property from the data in the XML-file

Parameters:
attr - the attributes representation in the xml-file of the ContentHandler
Returns:
the decoded resource properties
Throws:
ResourceException - on error
Access Rights

This class can be accessed from:


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 2014 SAP AG Complete Copyright Notice