public static class Photo.Builder extends MultiValuedAttribute.Builder
Photo instances| Constructor and Description |
|---|
Photo.Builder() |
Photo.Builder(Photo photo)
builds an Builder based of the given Attribute
|
| Modifier and Type | Method and Description |
|---|---|
Photo |
build()
Builds a new Attribute with the given parameters
|
Photo.Builder |
setDisplay(String display)
Sets the human readable name (See
MultiValuedAttribute.getDisplay()). |
Photo.Builder |
setOperation(String operation)
Sets the operation (See
MultiValuedAttribute.getOperation()). |
Photo.Builder |
setPrimary(boolean primary)
Sets the primary attribute (See
MultiValuedAttribute.isPrimary()). |
Photo.Builder |
setType(Photo.Type type)
Sets the label indicating the attribute's function (See
MultiValuedAttribute#getType()). |
Photo.Builder |
setValue(ImageDataURI image)
an imageDataURI which contains a small in data image.
|
Photo.Builder |
setValue(URI uri)
an URI pointing to an image
|
setReference, setValuepublic Photo.Builder()
public Photo.Builder(Photo photo)
photo - existing Attributepublic Photo.Builder setOperation(String operation)
MultiValuedAttribute.BuilderMultiValuedAttribute.getOperation()).
Will be automatically set by the UpdateUsersetOperation in class MultiValuedAttribute.Builderoperation - only "delete" is supported at the momentpublic Photo.Builder setDisplay(String display)
MultiValuedAttribute.BuilderMultiValuedAttribute.getDisplay()).
client info: the Display value is set by the OSIAM server. If a MultiValuedAttribute which is send to the OSIAM server has this value filled, the value will be ignored or the action will be rejected.
setDisplay in class MultiValuedAttribute.Builderdisplay - a human readable namepublic Photo.Builder setValue(URI uri)
uri - a image URIpublic Photo.Builder setValue(ImageDataURI image)
image - a imagepublic Photo.Builder setType(Photo.Type type)
MultiValuedAttribute#getType()).type - the type of the attributepublic Photo.Builder setPrimary(boolean primary)
MultiValuedAttribute.BuilderMultiValuedAttribute.isPrimary()).setPrimary in class MultiValuedAttribute.Builderpublic Photo build()
MultiValuedAttribute.Builderbuild in class MultiValuedAttribute.BuilderCopyright © 2014. All Rights Reserved.