All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sdmxsource.sdmx.api.model.superbeans.metadata.ReferenceValueSuperBean Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2013 Metadata Technology Ltd.
 *
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the GNU Lesser General Public License v 3.0 
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/lgpl.html
 *
 * This file is part of the SDMX Component Library.
 *
 * The SDMX Component Library is free software: you can redistribute it and/or 
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * The SDMX Component Library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser 
 * General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License 
 * along with The SDMX Component Library If not, see 
 * http://www.gnu.org/licenses/lgpl.
 *
 * Contributors:
 * Metadata Technology - initial API and implementation
 ******************************************************************************/
package org.sdmxsource.sdmx.api.model.superbeans.metadata;

import org.sdmxsource.sdmx.api.model.beans.base.IdentifiableBean;
import org.sdmxsource.sdmx.api.model.beans.registry.ContentConstraintBean;
import org.sdmxsource.sdmx.api.model.metadata.DataKeyBean;
import org.sdmxsource.sdmx.api.model.metadata.ReferenceValueBean;
import org.sdmxsource.sdmx.api.model.superbeans.base.SuperBean;

import java.util.List;


/**
 * ReferenceValue contains a value for a target reference object reference.
 * 

* When this is taken with its sibling elements, they identify the object or objects to which the reported metadata apply. *

* The content of this will either be a reference to an identifiable object, a data key, a reference to a data set, or a report period. * * @author Matt Nelson */ public interface ReferenceValueSuperBean extends SuperBean { //FUNC MISSING REPORT PERIOD /** * Returns the id of this reference value * * @return id */ String getId(); /** * Returns the id of the dataset this bean is referencing, returns null if this is not a dataset reference. *

* NOTE : This is to be used in conjunction with the getIdentifiableReference() which will return the data provider reference * * @return dataset id */ String getDatasetId(); /** * Returns the identifiable structure that this reference value is using, * if this is a dataset reference this will return a reference to a data provider. *

* Returns null if there is no reference to an identifiable structure * * @return identifiable reference */ IdentifiableBean getIdentifiableReference(); /** * Returns the content constraint that this structure references, returns null if there is no reference * * @return content constraint reference */ ContentConstraintBean getContentConstraintReference(); /** * Returns a list of data keys, will return an empty list if isDatasetReference() is false * * @return data keys */ List getDataKeys(); /** * Returns true if this is a dataset reference, if true getIdentifiableReference() AND getDatasetId() will NOT be null * * @return dataset reference */ boolean isDatasetReference(); /** * Returns true if this is an identifiable structure reference, if true getIdentifiableReference() will NOT be null * * @return identifiable reference */ boolean isIdentifiableReference(); /** * Returns true if this is a datakey reference, if true getDataKeys() will return 1 or more items * * @return datakey reference */ boolean isDatakeyReference(); /** * Returns true if this is a content constraint reference, if true getContentConstraintReference() will return a not null value * * @return content constriant reference */ boolean isContentConstriantReference(); /** * Override from parent - returns the ReferenceValueBean that was used to build this SuperBean */ @Override ReferenceValueBean getBuiltFrom(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy