com.sapportals.wcm.repository

Class PropertyDefInterpreter

java.lang.Object
  extended by com.sapportals.wcm.repository.PropertyDefInterpreter

public class PropertyDefInterpreter
extends Object

This is a very simple interpreter class that allows one to write JDK 1.5 compliant code. Use this class to call methods using the old deprecated enum objects. For each method in class X (X.doExample(oldEnumType)), you'll find a corresponding method of the form doExample(instanceOfX,newEnumType) in this class.

Since:
NW 7.1

Constructor Summary
PropertyDefInterpreter()
           
 
Method Summary
static PropertyType getType(IPropertyDef instance)
           
static PropertyDef newInstance_PropertyDef(PropertyType type, boolean isMultivalued)
           
static PropertyDef newInstance_PropertyDef(PropertyType type, boolean isMultivalued, boolean isRequired, boolean isReadonly, boolean isIndexed, boolean isHidden)
           
static PropertyDef newInstance_PropertyDef(PropertyType type, boolean isMultivalued, boolean isRequired, boolean isReadonly, boolean isIndexed, boolean isHidden, Properties attributes)
           
static PropertyDef valueOf(PropertyType type, boolean isMultivalued)
           
static PropertyDef valueOf(PropertyType type, boolean isMultivalued, boolean isReadOnly, boolean isHidden)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDefInterpreter

public PropertyDefInterpreter()
Method Detail

getType

public static PropertyType getType(IPropertyDef instance)

valueOf

public static PropertyDef valueOf(PropertyType type,
                                  boolean isMultivalued)

valueOf

public static PropertyDef valueOf(PropertyType type,
                                  boolean isMultivalued,
                                  boolean isReadOnly,
                                  boolean isHidden)

newInstance_PropertyDef

public static PropertyDef newInstance_PropertyDef(PropertyType type,
                                                  boolean isMultivalued)

newInstance_PropertyDef

public static PropertyDef newInstance_PropertyDef(PropertyType type,
                                                  boolean isMultivalued,
                                                  boolean isRequired,
                                                  boolean isReadonly,
                                                  boolean isIndexed,
                                                  boolean isHidden)
                                           throws ResourceException
Throws:
ResourceException

newInstance_PropertyDef

public static PropertyDef newInstance_PropertyDef(PropertyType type,
                                                  boolean isMultivalued,
                                                  boolean isRequired,
                                                  boolean isReadonly,
                                                  boolean isIndexed,
                                                  boolean isHidden,
                                                  Properties attributes)
                                           throws ResourceException
Throws:
ResourceException
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