|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.9.0) E15995-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wcps.property.model.PropertyDefinition.Builder
public static class PropertyDefinition.Builder
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();
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public PropertyDefinition.Builder withNamespaceName(java.lang.String name)
public PropertyDefinition.Builder withNamespaceName(INamespaceName name)
public PropertyDefinition.Builder withPropertyDefinitionName(java.lang.String name)
public PropertyDefinition.Builder withDescription(java.lang.String desc)
public PropertyDefinition.Builder withRestrictedValues(java.util.List<? extends java.io.Serializable> restrictedValues)
public PropertyDefinition.Builder withRestrictedValue(java.io.Serializable restrictedValue)
public PropertyDefinition.Builder withDefaultValues(java.util.List<? extends java.io.Serializable> defaultValues)
public PropertyDefinition.Builder withDefaultValue(java.io.Serializable defaultValue)
public PropertyDefinition.Builder withValidatorClassName(java.lang.String validator)
public PropertyDefinition.Builder withValidatorValue(java.lang.String value)
public IPropertyDefinition build()
public void validate()
public void validateName()
public void validateType()
public void validateRestrictedValues()
public void validateDefaultValues()
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.9.0) E15995-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |