Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.wcps.property.model
Class Property.Builder<T extends java.io.Serializable>

java.lang.Object
  extended by oracle.wcps.property.model.Property.Builder<T>

Enclosing class:
Property<T extends java.io.Serializable>

public static class Property.Builder<T extends java.io.Serializable>
extends java.lang.Object

The builder used for creating a Property. The instances of this are not thread safe. The build() method validates the property value by testing if it is the right type. The following example shows how to use this builder.

 IProperty property = Property.builder().withProperty("Company Name", "Oracle").build();
 

Method Summary
 IProperty<T> build()
           
 Property.Builder<T> withProperty(IPropertyName name, T value)
           
 Property.Builder<T> withProperty(IPropertyName name, T value, Type type)
           
 Property.Builder<T> withProperty(java.lang.String name, T value)
           
 Property.Builder<T> withProperty(java.lang.String name, T value, Type type)
           

 

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

 

Method Detail

withProperty

public Property.Builder<T> withProperty(java.lang.String name,
                                        T value)

withProperty

public Property.Builder<T> withProperty(IPropertyName name,
                                        T value)

withProperty

public Property.Builder<T> withProperty(java.lang.String name,
                                        T value,
                                        Type type)

withProperty

public Property.Builder<T> withProperty(IPropertyName name,
                                        T value,
                                        Type type)

build

public IProperty<T> build()

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


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