Package org.ivoa.dm.executionbroker
Class ExecbrokerModel
java.lang.Object
org.ivoa.dm.executionbroker.ExecbrokerModel
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.JaxbManagement,org.ivoa.vodml.VodmlModel<ExecbrokerModel>
@VoDml(id="execbroker",
role=model,
type="execbroker")
public class ExecbrokerModel
extends Object
implements org.ivoa.vodml.VodmlModel<ExecbrokerModel>
The container class for the execbroker Model.
the data model for execution broker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA container class for the references in the model. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.ivoa.vodml.ModelDescriptionthe description. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd AbstractUpdate to model.voidadd EnumValueUpdate to model.voidadd ExecutionRequestComponents to model.voidadd ExecutionSessionResponseFour to model.voidadd IntegerDeltaUpdate to model.voidadd IntegerValueUpdate to model.voidadd OfferSetRequest to model.voidadd OfferSetResponse to model.voidadd StringValueUpdate to model.static jakarta.xml.bind.JAXBContextthe context factory for the model.voidcreate a context in preparation for cloning.voidremove AbstractUpdate from model.voidremove EnumValueUpdate from model.voidremove ExecutionRequestComponents from model.voidremove ExecutionSessionResponseFour from model.voidremove IntegerDeltaUpdate from model.voidremove IntegerValueUpdate from model.voidremove OfferSetRequest from model.voidremove OfferSetResponse from model.voidremove StringValueUpdate from model.<T> List<T>getContent(Class<T> c) Get the content of the given type.static booleanif the model has references.static booleanisInVocabulary(String value, String vocabulary) Test if a term is in the vocabulary.static com.fasterxml.jackson.databind.ObjectMapperReturn a Jackson objectMapper suitable for JSON serialzation.org.ivoa.vodml.ModelManagement<ExecbrokerModel>generate management interface instance for model.voidstatic Stringpu_name()The persistence unit name for the model.static InputStreamthe TAP schema for the model.
-
Field Details
-
modelDescription
public static final org.ivoa.vodml.ModelDescription modelDescriptionthe description.
-
-
Constructor Details
-
ExecbrokerModel
public ExecbrokerModel()default constructor.
-
-
Method Details
-
isInVocabulary
Test if a term is in the vocabulary.- Parameters:
value- the value to testvocabulary- the uri for the vocabulary.- Returns:
- true if the term is in the vocabulary.
-
addContent
add ExecutionSessionResponseFour to model.- Parameters:
c- org.ivoa.dm.executionbroker.ExecutionSessionResponseFour
-
deleteContent
remove ExecutionSessionResponseFour from model.- Parameters:
c- org.ivoa.dm.executionbroker.ExecutionSessionResponseFour
-
addContent
add ExecutionRequestComponents to model.- Parameters:
c- org.ivoa.dm.executionbroker.ExecutionRequestComponents
-
deleteContent
remove ExecutionRequestComponents from model.- Parameters:
c- org.ivoa.dm.executionbroker.ExecutionRequestComponents
-
addContent
add OfferSetRequest to model.- Parameters:
c- org.ivoa.dm.executionbroker.OfferSetRequest
-
deleteContent
remove OfferSetRequest from model.- Parameters:
c- org.ivoa.dm.executionbroker.OfferSetRequest
-
addContent
add OfferSetResponse to model.- Parameters:
c- org.ivoa.dm.executionbroker.OfferSetResponse
-
deleteContent
remove OfferSetResponse from model.- Parameters:
c- org.ivoa.dm.executionbroker.OfferSetResponse
-
addContent
add AbstractUpdate to model.- Parameters:
c- org.ivoa.dm.executionbroker.AbstractUpdate
-
deleteContent
remove AbstractUpdate from model.- Parameters:
c- org.ivoa.dm.executionbroker.AbstractUpdate
-
addContent
add StringValueUpdate to model.- Parameters:
c- org.ivoa.dm.executionbroker.StringValueUpdate
-
deleteContent
remove StringValueUpdate from model.- Parameters:
c- org.ivoa.dm.executionbroker.StringValueUpdate
-
addContent
add EnumValueUpdate to model.- Parameters:
c- org.ivoa.dm.executionbroker.EnumValueUpdate
-
deleteContent
remove EnumValueUpdate from model.- Parameters:
c- org.ivoa.dm.executionbroker.EnumValueUpdate
-
addContent
add IntegerValueUpdate to model.- Parameters:
c- org.ivoa.dm.executionbroker.IntegerValueUpdate
-
deleteContent
remove IntegerValueUpdate from model.- Parameters:
c- org.ivoa.dm.executionbroker.IntegerValueUpdate
-
addContent
add IntegerDeltaUpdate to model.- Parameters:
c- org.ivoa.dm.executionbroker.IntegerDeltaUpdate
-
deleteContent
remove IntegerDeltaUpdate from model.- Parameters:
c- org.ivoa.dm.executionbroker.IntegerDeltaUpdate
-
getContent
Get the content of the given type.- Type Parameters:
T- The type of the content- Parameters:
c- the class of the content.- Returns:
- the content.
-
processReferences
public void processReferences()- Specified by:
processReferencesin interfaceorg.ivoa.vodml.jaxb.JaxbManagement
-
hasReferences
public static boolean hasReferences()if the model has references.- Returns:
- true if the model has references.
-
contextFactory
public static jakarta.xml.bind.JAXBContext contextFactory() throws jakarta.xml.bind.JAXBExceptionthe context factory for the model.- Returns:
- the JAXBContext.
- Throws:
jakarta.xml.bind.JAXBException- if there is a problem.
-
pu_name
The persistence unit name for the model.- Returns:
- the name.
-
jsonMapper
public static com.fasterxml.jackson.databind.ObjectMapper jsonMapper()Return a Jackson objectMapper suitable for JSON serialzation.- Returns:
- the objectmapper.
-
management
generate management interface instance for model.- Specified by:
managementin interfaceorg.ivoa.vodml.VodmlModel<ExecbrokerModel>- Returns:
- the management interface.
-
TAPSchema
the TAP schema for the model. The schema is represented via the TAPSchemaDM datamodel.- Returns:
- an InputStream to the XML representation of the model.
-
createContext
public void createContext()create a context in preparation for cloning.
-