|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.ItemInfoBuilder.PropertyInfoBuilder
public static class ItemInfoBuilder.PropertyInfoBuilder
Builder for PropertyInfos. Use ItemInfoBuilder.NodeInfoBuilder.createPropertyInfo(String)
to create an instance of this class.
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ItemInfoBuilder.PropertyInfoBuilder setName(org.apache.jackrabbit.spi.Name name)
name of this property
name -
public ItemInfoBuilder.PropertyInfoBuilder setName(String localName)
localName of this property
localName -
public ItemInfoBuilder.PropertyInfoBuilder setNamespace(String namespace)
namespace -
public ItemInfoBuilder.PropertyInfoBuilder setType(int type)
type of this property
type -
this
IllegalStateException - if a property of a different type has been added before.public ItemInfoBuilder.PropertyInfoBuilder addValue(org.apache.jackrabbit.spi.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
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(String value)
throws RepositoryException
PropertyType.STRING value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(Calendar value)
throws RepositoryException
PropertyType.DATE value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(double value)
throws RepositoryException
PropertyType.DOUBLE value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(long value)
throws RepositoryException
PropertyType.LONG value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(boolean value)
throws RepositoryException
PropertyType.BOOLEAN value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(org.apache.jackrabbit.spi.Name value)
throws RepositoryException
PropertyType.NAME value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(org.apache.jackrabbit.spi.Path value)
throws RepositoryException
PropertyType.PATH value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(BigDecimal value)
throws RepositoryException
PropertyType.DECIMAL value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(URI value)
throws RepositoryException
PropertyType.URI value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(byte[] value)
throws RepositoryException
PropertyType.BINARY value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
public ItemInfoBuilder.PropertyInfoBuilder addValue(InputStream value)
throws RepositoryException,
IOException
PropertyType.BINARY value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
IOException
public ItemInfoBuilder.PropertyInfoBuilder addValue(File value)
throws RepositoryException,
IOException
PropertyType.BINARY value to this property.
value -
this
RepositoryException
IllegalStateException - if the type of the value does not match the type of this property
IOExceptionpublic ItemInfoBuilder.PropertyInfoBuilder setMultivalued(boolean on)
on -
this
IllegalStateException - if this property does not contain exactly on value
public 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
IllegalStateException - if build has been called before
IllegalStateException - if the type is not setpublic ItemInfoBuilder.NodeInfoBuilder getParent()
public org.apache.jackrabbit.spi.PropertyInfo getPropertyInfo()
PropertyInfo which has been built by this builder.
IllegalStateException - if build() has not been called before.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||