Package org.ivoa.dm.pdl
Class ParameterGroup
java.lang.Object
org.ivoa.dm.pdl.ParameterGroup
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement,org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="pdl:ParameterGroup",
role=objectType)
public class ParameterGroup
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
a group of parameter Definitions.
objectType: ParameterGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ParameterGroup, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ParameterGroupParameterGroup(String name, List<ParameterOrGroup> members) full parameter constructor.ParameterGroup(ParameterGroup other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.pdl.ParameterOrGroup to the composition.static ParameterGroupcreate a ParameterGroup in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns members composition as an immutable list.getName()Returns name Attribute.getXmlId()getter for XMLIDbooleanvoidRemove a org.ivoa.dm.pdl.ParameterOrGroup from the composition.voidupdate a org.ivoa.dm.pdl.ParameterOrGroup in the composition.voidsetMembers(List<ParameterOrGroup> pMembers) Defines whole members composition.voidSet name Attribute.voidvoidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(ParameterGroup other) Update this object with the content of the given object.fluent setter for name Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="pdl:ParameterGroup.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameGroup name. : Attribute name type ivoa:string : multiplicity 1 -
members
@VoDml(id="pdl:ParameterGroup.members", role=composition, type="pdl:ParameterOrGroup", typeRole=objectType) protected List<ParameterOrGroup> membersthe definitions in the group. composition members : ( Multiplicity : 1..* )
-
-
Constructor Details
-
ParameterGroup
public ParameterGroup()Creates a new ParameterGroup -
ParameterGroup
full parameter constructor.- Parameters:
name- Group name.members- the definitions in the group.
-
ParameterGroup
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
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- ParameterGroup
-
getMembers
Returns members composition as an immutable list.- Returns:
- members composition.
-
setMembers
Defines whole members composition.- Parameters:
pMembers- composition to set.
-
addToMembers
Add a org.ivoa.dm.pdl.ParameterOrGroup to the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterOrGroup to add
-
removeFromMembers
Remove a org.ivoa.dm.pdl.ParameterOrGroup from the composition.- Parameters:
p- org.ivoa.dm.pdl.ParameterOrGroup to remove
-
replaceInMembers
update a org.ivoa.dm.pdl.ParameterOrGroup in the composition.- Parameters:
_p- org.ivoa.dm.pdl.ParameterOrGroup to update the match is done via the database key
-
createParameterGroup
create a ParameterGroup 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>
-