public interface MaintainableBean extends NameableBean, java.lang.Comparable<MaintainableBean>
getAgencyId()
and has a mandatory id and a mandatory version, defaulting to 1.0.
The unique identifier of a maintainable artefact is the AgencyId, Id and Version.
Each maintainable artefact can create a mutable representation of itself (getMutableInstance()
)
and can also return a stub representation of itself getStub()
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_VERSION |
Modifier and Type | Method and Description |
---|---|
MaintainableBean |
addAnnotations(java.util.Map<StructureReferenceBean,java.util.Set<AnnotationMutableBean>> annotations)
Adds a annotations to a copy of this bean, and returns the copy
|
java.lang.String |
getAgencyId()
Returns the agency id that is responsible for maintaining this maintainable artifact
|
SdmxDate |
getEndDate()
Returns the end date of this maintainable artifact, returns null if there is no endDate
|
MaintainableMutableBean |
getMutableInstance()
Returns a representation of itself in a bean which can be modified, modifications to the mutable bean
are not reflected in the instance of the MaintainableBean.
|
java.net.URL |
getServiceURL()
The serviceURL attribute indicates the URL of an SDMX SOAP web service from which the details of the object can be retrieved.
|
SdmxDate |
getStartDate()
Returns the start date of this maintainable artifact, returns null if there is no startDate
|
java.net.URL |
getStructureURL()
The structureURL attribute indicates the URL of a SDMX-ML structure message
(in the same version as the source document) in which the externally referenced object is contained.
|
MaintainableBean |
getStub(java.net.URL actualLocation,
boolean isServiceUrl)
Returns a stub reference of itself.
|
java.lang.String |
getVersion()
Returns the version of this maintainable artifact, default version is 1.0
Version is a integer value with period '.' separators between integers, for example 1.2.3.19
|
TERTIARY_BOOL |
isExternalReference()
Returns TERTIARY_BOOL.TRUE if this maintainable artifact is externally referenced
|
TERTIARY_BOOL |
isFinal()
Returns TERTIARY_BOOL.TRUE if the structure is marked as final, meaning the structure can not be modified
|
getDescription, getDescriptions, getName, getNames
asReference, getAllTextTypes, getFullIdPath, getId, getUri, getUrn
getAnnotations, getAnnotationsByTitle, getAnnotationsByType, hasAnnotationType
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent
deepEquals, getComposites, getComposites, getCrossReferences, getParent, getStructureType
static final java.lang.String DEFAULT_VERSION
java.lang.String getAgencyId()
java.lang.String getVersion()
SdmxDate getStartDate()
SdmxDate getEndDate()
TERTIARY_BOOL isFinal()
TERTIARY_BOOL isExternalReference()
MaintainableBean getStub(java.net.URL actualLocation, boolean isServiceUrl)
actualLocation
- the URL indicating where the full structure can be returned fromisServiceUrl
- if true this URL will be present on the serviceURL attribute, otherwise it will be treated as a structureURL attributeMaintainableBean addAnnotations(java.util.Map<StructureReferenceBean,java.util.Set<AnnotationMutableBean>> annotations)
ref
- a map of structure references to a set of annotations to addMaintainableMutableBean getMutableInstance()
java.net.URL getServiceURL()
java.net.URL getStructureURL()