Package org.ivoa.dm.vosi.capabilities
Class Capabilities
java.lang.Object
org.ivoa.dm.vosi.capabilities.Capabilities
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOSIcap:capabilities",
role=objectType)
public class Capabilities
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
// TODO might not be a necessary wrapper....
A listing of capabilities supported by a service .
objectType: Capabilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for capabilities, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<Capability>A capability supported by the service. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new capabilitiesCapabilities(List<Capability> capability) full parameter constructor.Capabilities(Capabilities other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.voresource.Capability to the composition.static Capabilitiescreate a capabilities in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns capability composition as an immutable list.getId()voidRemove a org.ivoa.dm.registry.voresource.Capability from the composition.voidupdate a org.ivoa.dm.registry.voresource.Capability in the composition.voidsetCapability(List<Capability> pCapability) Defines whole capability composition.voidupdateUsing(Capabilities other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
capability
@VoDml(id="VOSIcap:capabilities.capability", role=composition, type="VOResource:Capability", typeRole=objectType) protected List<Capability> capabilityA capability supported by the service. A protocol-specific capability is included by specifying a VOResource:Capability sub-type via an xsi:type attribute on this element. composition capability : ( Multiplicity : 0..* )
-
-
Constructor Details
-
Capabilities
public Capabilities()Creates a new capabilities -
Capabilities
full parameter constructor.- Parameters:
capability- A capability supported by the service. A protocol-specific capability is included by specifying a VOResource:Capability sub-type via an xsi:type attribute on this element.
-
Capabilities
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getCapability
Returns capability composition as an immutable list.- Returns:
- capability composition.
-
setCapability
Defines whole capability composition.- Parameters:
pCapability- composition to set.
-
addToCapability
Add a org.ivoa.dm.registry.voresource.Capability to the composition.- Parameters:
p- org.ivoa.dm.registry.voresource.Capability to add
-
removeFromCapability
Remove a org.ivoa.dm.registry.voresource.Capability from the composition.- Parameters:
p- org.ivoa.dm.registry.voresource.Capability to remove
-
replaceInCapability
update a org.ivoa.dm.registry.voresource.Capability in the composition.- Parameters:
_p- org.ivoa.dm.registry.voresource.Capability to update the match is done via the database key
-
createCapabilities
create a capabilities in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-