Class Relationship.Builder<_B>
java.lang.Object
org.javastro.ivoa.entities.resource.Relationship.Builder<_B>
- All Implemented Interfaces:
com.kscs.util.jaxb.Buildable
- Enclosing class:
- Relationship
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kscs.util.jaxb.Buildable
com.kscs.util.jaxb.Buildable.PrimitiveBuildable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilder(_B _parentBuilder, Relationship _other, boolean _copy) Builder(_B _parentBuilder, Relationship _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse) -
Method Summary
Modifier and TypeMethodDescriptionResourceName.Builder<? extends Relationship.Builder<_B>>Returns a new builder to build an additional value of the "RelatedResources" property.addRelatedResources(Iterable<? extends ResourceName> relatedResources) Adds the given items to the value of "relatedResources"addRelatedResources(ResourceName... relatedResources) Adds the given items to the value of "relatedResources"build()copyOf(Relationship _other) copyOf(Relationship.Builder _other) end()protected <_P extends Relationship>
_Pinit(_P _product) withRelatedResources(Iterable<? extends ResourceName> relatedResources) Sets the new value of "relatedResources" (any previous value will be replaced)withRelatedResources(ResourceName... relatedResources) Sets the new value of "relatedResources" (any previous value will be replaced)withRelationshipType(String relationshipType) Sets the new value of "relationshipType" (any previous value will be replaced)
-
Field Details
-
_parentBuilder
-
_storedValue
-
-
Constructor Details
-
Builder
-
Builder
public Builder(_B _parentBuilder, Relationship _other, boolean _copy, com.kscs.util.jaxb.PropertyTree _propertyTree, com.kscs.util.jaxb.PropertyTreeUse _propertyTreeUse)
-
-
Method Details
-
end
-
init
-
withRelationshipType
Sets the new value of "relationshipType" (any previous value will be replaced)- Parameters:
relationshipType- New value of the "relationshipType" property.
-
addRelatedResources
public Relationship.Builder<_B> addRelatedResources(Iterable<? extends ResourceName> relatedResources) Adds the given items to the value of "relatedResources"- Parameters:
relatedResources- Items to add to the value of the "relatedResources" property
-
withRelatedResources
public Relationship.Builder<_B> withRelatedResources(Iterable<? extends ResourceName> relatedResources) Sets the new value of "relatedResources" (any previous value will be replaced)- Parameters:
relatedResources- New value of the "relatedResources" property.
-
addRelatedResources
Adds the given items to the value of "relatedResources"- Parameters:
relatedResources- Items to add to the value of the "relatedResources" property
-
withRelatedResources
Sets the new value of "relatedResources" (any previous value will be replaced)- Parameters:
relatedResources- New value of the "relatedResources" property.
-
addRelatedResources
Returns a new builder to build an additional value of the "RelatedResources" property. UseResourceName.Builder.end()to return to the current builder.- Returns:
- a new builder to build an additional value of the "RelatedResources" property.
Use
ResourceName.Builder.end()to return to the current builder.
-
build
- Specified by:
buildin interfacecom.kscs.util.jaxb.Buildable
-
copyOf
-
copyOf
-