public class ReferenceValueBeanImpl extends SDMXBeanImpl implements ReferenceValueBean
ReferenceValueBean.TARGET_TYPE
Constructor and Description |
---|
ReferenceValueBeanImpl(TargetBean parent,
org.sdmx.resources.sdmxml.schemas.v21.metadata.generic.ReferenceValueType type) |
Modifier and Type | Method and Description |
---|---|
boolean |
deepEquals(SDMXBean bean,
boolean includeFinalProperties)
Returns true if this SdmxBean equals the given bean in every respect (except for the validTo property of a maintainable artefact, this is not taken into consideration)
This method calls deepEquals on any SdmxBean composites.
|
CrossReferenceBean |
getContentConstraintReference()
Returns the reference to the content constraint, if there is one
|
java.util.List<DataKeyBean> |
getDataKeys()
Returns a list of data keys, will return an empty list if isDatasetReference() is false
|
java.lang.String |
getDatasetId()
Returns the id of the dataset this bean is referencing, returns null if this is not a dataset reference.
|
java.lang.String |
getId()
Returns the id of this reference value
|
CrossReferenceBean |
getIdentifiableReference()
Returns a reference to any identifiable structure, if this is a dataset reference this will return a reference to a data provider.
|
SdmxDate |
getReportPeriod()
Returns the date for which this report is relevant
|
ReferenceValueBean.TARGET_TYPE |
getTargetType()
Returns an enum defining what this reference value is referencing
|
boolean |
isContentConstriantReference()
Returns true if this is a content constraint reference, if true getContentConstraintReference() will return a not null value
|
boolean |
isDatakeyReference()
Returns true if this is a datakey reference, if true getDataKeys() will return 1 or more items
|
boolean |
isDatasetReference()
Returns true if this is a dataset reference, if true getIdentifiableReference() AND getDatasetId() will NOT be null
|
boolean |
isIdentifiableReference()
Returns true if this is an identifiable structure reference, if true getIdentifiableReference() will NOT be null
|
java.lang.String |
toString() |
getComposites, getComposites, getCrossReferences, getParent, getParent, getStructureType
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComposites, getComposites, getCrossReferences, getParent, getParent, getStructureType
public ReferenceValueBeanImpl(TargetBean parent, org.sdmx.resources.sdmxml.schemas.v21.metadata.generic.ReferenceValueType type)
public java.lang.String getId()
ReferenceValueBean
getId
in interface ReferenceValueBean
public ReferenceValueBean.TARGET_TYPE getTargetType()
ReferenceValueBean
getTargetType
in interface ReferenceValueBean
public java.lang.String getDatasetId()
ReferenceValueBean
getDatasetId
in interface ReferenceValueBean
public SdmxDate getReportPeriod()
ReferenceValueBean
getReportPeriod
in interface ReferenceValueBean
public CrossReferenceBean getIdentifiableReference()
ReferenceValueBean
getIdentifiableReference
in interface ReferenceValueBean
public CrossReferenceBean getContentConstraintReference()
ReferenceValueBean
getContentConstraintReference
in interface ReferenceValueBean
public boolean isDatakeyReference()
ReferenceValueBean
isDatakeyReference
in interface ReferenceValueBean
public boolean isContentConstriantReference()
ReferenceValueBean
isContentConstriantReference
in interface ReferenceValueBean
public java.util.List<DataKeyBean> getDataKeys()
ReferenceValueBean
getDataKeys
in interface ReferenceValueBean
public boolean isDatasetReference()
ReferenceValueBean
isDatasetReference
in interface ReferenceValueBean
public boolean isIdentifiableReference()
ReferenceValueBean
isIdentifiableReference
in interface ReferenceValueBean
public boolean deepEquals(SDMXBean bean, boolean includeFinalProperties)
SDMXBean
deepEquals
in interface SDMXBean
deepEquals
in class SDMXBeanImpl
bean
- if null, then false will be returnedincludeFinalProperties
- - if true, then this method will check every single property from this bean is
equal to the passed in bean. If false, then this method will ignore the following properties:
public java.lang.String toString()
toString
in class java.lang.Object