| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Channel |
build()
build a
Channel object using this builder. |
static Channel.Builder |
channel(Channel channel)
Create a channel builder initialized to a copy of the channel
|
static Channel.Builder |
channel(String name)
Create a channel builder for a channel with the given name
|
Channel.Builder |
owner(String owner)
Set owner for the channel to be created
|
XmlChannel |
toXml()
build a
XmlChannel object using this builder. |
Channel.Builder |
with(Property.Builder property)
Add property to the channel to be created
|
Channel.Builder |
with(Tag.Builder tag)
Add tag to the channel to be created
|
Channel.Builder |
withProperties(Collection<Property.Builder> properties)
Add the Collection of properties to the channel to be created
|
Channel.Builder |
withTags(Collection<Tag.Builder> tags)
Add the Collection of tags to the channel to be created
|
public static Channel.Builder channel(Channel channel)
channel - - the channel to be copiedChannel.Builder with all the attributes copied from
the channel.public static Channel.Builder channel(String name)
name - - name of the channel you are creatingChannel.Builder with the channel name set to namepublic Channel.Builder owner(String owner)
owner - - string owner idChannel.Builder with owner set to ownerpublic Channel.Builder with(Tag.Builder tag)
tag - - tag to be addedChannel.Builder with tagpublic Channel.Builder withTags(Collection<Tag.Builder> tags)
tags - - list of tags to be addedChannel.Builder with tagspublic Channel.Builder with(Property.Builder property)
property - - property to be addedChannel.Builder with propertypublic Channel.Builder withProperties(Collection<Property.Builder> properties)
properties - - list of properties to be addedChannel.Builder with propertiespublic XmlChannel toXml()
XmlChannel object using this builder.XmlChannelCopyright © 2016. All Rights Reserved.