| 
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ValueFactory
The ValueFactory object provides methods for the creation Value objects that can then be used to set properties.
| Method Summary | |
|---|---|
 Value | 
createValue(boolean value)Returns a Value object of PropertyType.BOOLEAN with the specified value. | 
 Value | 
createValue(java.util.Calendar value)Returns a Value object of PropertyType.DATE with the specified value. | 
 Value | 
createValue(double value)Returns a Value object of PropertyType.DOUBLE with the specified value. | 
 Value | 
createValue(java.io.InputStream value)Returns a Value object of PropertyType.BINARY with a value consisting of the content of the specified InputStream. | 
 Value | 
createValue(long value)Returns a Value object of PropertyType.LONG with the specified value. | 
 Value | 
createValue(Node value)Returns a Value object of PropertyType.REFERENCE that holds the UUID of the specified Node. | 
 Value | 
createValue(java.lang.String value)Returns a Value object of PropertyType.STRING with the specified value. | 
 Value | 
createValue(java.lang.String value, int type)Returns a Value object of the PropertyType specified by type with the specified value. | 
| Method Detail | 
|---|
Value createValue(java.lang.String value)
Value object of PropertyType.STRING with the specified value.value - a StringValue of PropertyType.STRING
Value createValue(java.lang.String value,
                  int type)
                  throws ValueFormatException
Value object of the PropertyType specified by type with the specified value. A ValueFormatException is thrown if the specified value cannot be converted to the specifed type.value - a Stringtype - one of the constants defined in PropertyType.Value of PropertyType type.ValueFormatException - if the specified value cannot be converted to the specifed type.Value createValue(long value)
Value object of PropertyType.LONG with the specified value.value - a longValue of PropertyType.LONGValue createValue(double value)
Value object of PropertyType.DOUBLE with the specified value.value - a doubleValue of PropertyType.DOUBLEValue createValue(boolean value)
Value object of PropertyType.BOOLEAN with the specified value.value - a booleanValue of PropertyType.BOOLEANValue createValue(java.util.Calendar value)
Value object of PropertyType.DATE with the specified value.value - a CalendarValue of PropertyType.DATEValue createValue(java.io.InputStream value)
Value object of PropertyType.BINARY with a value consisting of the content of the specified InputStream.value - an InputStreamValue of PropertyType.BINARY
Value createValue(Node value)
                  throws RepositoryException
Value object of PropertyType.REFERENCE that holds the UUID of the specified Node. This Value object can then be used to set a property that will be a reference to that Node.
A RepositoryException is thrown if the specified Node is not referencable, the current Session is no longer active, or another error occurs.
value - a NodeValue of PropertyType.REFERENCERepositoryException - if the specified Node is not referencable, the current Session is no longer active, or another error occurs.
  | 
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2004-2005 Day Software Management AG. All Rights Reserved.