public static class ItemInfoBuilder.PropertyInfoBuilder
extends java.lang.Object
PropertyInfo
s. Use ItemInfoBuilder.NodeInfoBuilder.createPropertyInfo(String)
to create an instance of this class.Modifier and Type | Method and Description |
---|---|
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.math.BigDecimal value)
Add a
PropertyType#DECIMAL value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(boolean value)
Add a
PropertyType#BOOLEAN value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(byte[] value)
Add a
PropertyType#BINARY value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.util.Calendar value)
Add a
PropertyType#DATE value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(double value)
Add a
PropertyType#DOUBLE value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.io.File value)
Add a
PropertyType#BINARY value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.io.InputStream value)
Add a
PropertyType#BINARY value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(long value)
Add a
PropertyType#LONG value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(Name value)
Add a
PropertyType#NAME value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(Path value)
Add a
PropertyType#PATH value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(QValue value)
Add a
value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.lang.String value)
Add a
PropertyType#STRING value to this property. |
ItemInfoBuilder.PropertyInfoBuilder |
addValue(java.net.URI value)
Add a
PropertyType#URI value to this property. |
ItemInfoBuilder.NodeInfoBuilder |
build()
Build the
PropertyInfo . |
ItemInfoBuilder.NodeInfoBuilder |
getParent() |
PropertyInfo |
getPropertyInfo()
Returns the
PropertyInfo which has been built by this builder. |
ItemInfoBuilder.PropertyInfoBuilder |
setMultivalued(boolean on)
Set this property to multi-values.
|
ItemInfoBuilder.PropertyInfoBuilder |
setName(Name name)
Set the
name of this property |
ItemInfoBuilder.PropertyInfoBuilder |
setName(java.lang.String localName)
Set the
localName of this property |
ItemInfoBuilder.PropertyInfoBuilder |
setNamespace(java.lang.String namespace)
Set the namespace
|
ItemInfoBuilder.PropertyInfoBuilder |
setType(int type)
Set the
of this property |
public ItemInfoBuilder.PropertyInfoBuilder setName(Name name)
name
of this propertyname
- public ItemInfoBuilder.PropertyInfoBuilder setName(java.lang.String localName)
localName
of this propertylocalName
- public ItemInfoBuilder.PropertyInfoBuilder setNamespace(java.lang.String namespace)
namespace
- public ItemInfoBuilder.PropertyInfoBuilder setType(int type)
type
of this propertytype
- this
java.lang.IllegalStateException
- if a property of a different type has been added before.public ItemInfoBuilder.PropertyInfoBuilder addValue(QValue value)
value
to this property. Sets this property to single valued if
this is the first value. Otherwise sets this property to multi-valued.value
- this
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(java.lang.String value) throws RepositoryException
PropertyType#STRING
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(java.util.Calendar value) throws RepositoryException
PropertyType#DATE
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(double value) throws RepositoryException
PropertyType#DOUBLE
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(long value) throws RepositoryException
PropertyType#LONG
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(boolean value) throws RepositoryException
PropertyType#BOOLEAN
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(Name value) throws RepositoryException
PropertyType#NAME
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(Path value) throws RepositoryException
PropertyType#PATH
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(java.math.BigDecimal value) throws RepositoryException
PropertyType#DECIMAL
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(java.net.URI value) throws RepositoryException
PropertyType#URI
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(byte[] value) throws RepositoryException
PropertyType#BINARY
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertypublic ItemInfoBuilder.PropertyInfoBuilder addValue(java.io.InputStream value) throws RepositoryException, java.io.IOException
PropertyType#BINARY
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertyjava.io.IOException
public ItemInfoBuilder.PropertyInfoBuilder addValue(java.io.File value) throws RepositoryException, java.io.IOException
PropertyType#BINARY
value to this property.value
- this
RepositoryException
java.lang.IllegalStateException
- if the type of the value does not match the type of this propertyjava.io.IOException
public ItemInfoBuilder.PropertyInfoBuilder setMultivalued(boolean on)
on
- this
java.lang.IllegalStateException
- if this property does not contain exactly on valuepublic ItemInfoBuilder.NodeInfoBuilder build() throws RepositoryException
PropertyInfo
. If a ItemInfoBuilder.Listener
is associated with this
instance, then its ItemInfoBuilder.Listener.createPropertyInfo(PropertyInfo)
methods
is called.RepositoryException
java.lang.IllegalStateException
- if build has been called beforejava.lang.IllegalStateException
- if the type is not setpublic ItemInfoBuilder.NodeInfoBuilder getParent()
public PropertyInfo getPropertyInfo()
PropertyInfo
which has been built by this builder.java.lang.IllegalStateException
- if build()
has not been called before."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"