Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


oracle.wcps.property.model
Class PropertyDefinition.Builder

java.lang.Object
  extended by oracle.wcps.property.model.PropertyDefinition.Builder

Enclosing class:
PropertyDefinition

public static class PropertyDefinition.Builder
extends java.lang.Object

The builder used for creating a PropertyDefinition. The instances of this are not thread safe. The following example shows how to use this builder.

 IPropertyDefinition propertyDef = PropertyDefinition.builder(Type.INT, false)
                                                     .withNamespaceName("Oracle")
                                                     .withPropertyDefinitionName("Int_Def")
                                                     .withDefaultValue(6)
                                                     .build();
 

Method Summary
 IPropertyDefinition build()
           
 PropertyDefinition.Builder withDefaultValue(java.io.Serializable defaultValue)
           
 PropertyDefinition.Builder withDefaultValues(java.util.List<? extends java.io.Serializable> defaultValues)
           
 PropertyDefinition.Builder withDescription(java.lang.String desc)
           
 PropertyDefinition.Builder withNamespaceName(INamespaceName name)
          Deprecated. it is a no op.
 PropertyDefinition.Builder withNamespaceName(java.lang.String name)
          Deprecated. it is a no op.
 PropertyDefinition.Builder withPropertyDefinitionName(java.lang.String name)
           
 PropertyDefinition.Builder withRestrictedValue(java.io.Serializable restrictedValue)
           
 PropertyDefinition.Builder withRestrictedValues(java.util.List<? extends java.io.Serializable> restrictedValues)
           
 PropertyDefinition.Builder withValidatorClassName(java.lang.String validator)
           
 PropertyDefinition.Builder withValidatorValue(java.lang.String value)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

withNamespaceName

public PropertyDefinition.Builder withNamespaceName(java.lang.String name)
Deprecated. it is a no op.

withNamespaceName

public PropertyDefinition.Builder withNamespaceName(INamespaceName name)
Deprecated. it is a no op.

withPropertyDefinitionName

public PropertyDefinition.Builder withPropertyDefinitionName(java.lang.String name)

withDescription

public PropertyDefinition.Builder withDescription(java.lang.String desc)

withRestrictedValues

public PropertyDefinition.Builder withRestrictedValues(java.util.List<? extends java.io.Serializable> restrictedValues)

withRestrictedValue

public PropertyDefinition.Builder withRestrictedValue(java.io.Serializable restrictedValue)

withDefaultValues

public PropertyDefinition.Builder withDefaultValues(java.util.List<? extends java.io.Serializable> defaultValues)

withDefaultValue

public PropertyDefinition.Builder withDefaultValue(java.io.Serializable defaultValue)

withValidatorClassName

public PropertyDefinition.Builder withValidatorClassName(java.lang.String validator)

withValidatorValue

public PropertyDefinition.Builder withValidatorValue(java.lang.String value)

build

public IPropertyDefinition build()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal
11g Release 1 (11.1.1.6.0)
E15995-04


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.