/**
 * <!-- LICENSE_TEXT_START -->
 * $Header: /share/content/gforge/caadapter/caadapter/components/common/src/gov/nih/nci/caadapter/common/csv/meta/CSVSegmentMeta.java,v 1.4 2007-07-16 19:44:55 wangeug Exp $
 *
 * ******************************************************************
 * COPYRIGHT NOTICE
 * ******************************************************************
 *
 * The caAdapter Software License, Version 1.3
 * Copyright Notice.
 * 
 * Copyright 2006 SAIC. This software was developed in conjunction with the National Cancer Institute. To the extent government employees are co-authors, any rights in such works are subject to Title 17 of the United States Code, section 105. 
 * 
 * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 
 * 
 * 1. Redistributions of source code must retain the Copyright Notice above, this list of conditions, and the disclaimer of Article 3, below. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 
 * 
 * 2. The end-user documentation included with the redistribution, if any, must include the following acknowledgment:
 * 
 * 
 * "This product includes software developed by the SAIC and the National Cancer Institute."
 * 
 * 
 * If no such end-user documentation is to be included, this acknowledgment shall appear in the software itself, wherever such third-party acknowledgments normally appear. 
 * 
 * 3. The names "The National Cancer Institute", "NCI" and "SAIC" must not be used to endorse or promote products derived from this software. 
 * 
 * 4. This license does not authorize the incorporation of this software into any third party proprietary programs. This license does not authorize the recipient to use any trademarks owned by either NCI or SAIC-Frederick. 
 * 
 * 5. THIS SOFTWARE IS PROVIDED "AS IS," AND ANY EXPRESSED OR IMPLIED WARRANTIES, (INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE) ARE DISCLAIMED. IN NO EVENT SHALL THE UNITED STATES GOVERNMENT, THE NATIONAL CANCER INSTITUTE, SAIC, OR THEIR AFFILIATES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * <!-- LICENSE_TEXT_END -->
 */


package gov.nih.nci.caadapter.common.csv.meta;

import gov.nih.nci.caadapter.common.MetaObject;
import gov.nih.nci.caadapter.castor.csv.meta.impl.types.CardinalityType;

import java.util.List;

/**
 * Interface for segment metadata (contained within a csv file).
 *
 * @author OWNER: Matthew Giordano
 * @author LAST UPDATE $Author: wangeug $
 * @since     caAdapter v1.2
 * @version    $Revision: 1.4 $
 * @date        $Date: 2007-07-16 19:44:55 $
 */

public interface CSVSegmentMeta extends MetaObject{
    //parents and children.
    public CSVSegmentMeta getParent();
    public void setParent(CSVSegmentMeta newParentSegmentMeta);
    public List<CSVFieldMeta> getFields();
    public List<CSVSegmentMeta> getChildSegments();
    //convenience.
    public void addField(CSVFieldMeta f);
    public void addSegment(CSVSegmentMeta s);

	//mutable
	public void removeAllFields();
	public void setFields(List<CSVFieldMeta> newFieldMetaList);

	public boolean removeField(CSVFieldMeta field);
	public boolean removeSegment(CSVSegmentMeta segment);

    public String getCardinalityWithString();
    public void setCardinalityWithString(String type) throws IllegalArgumentException;
    public CardinalityType getCardinalityType();
    public void setCardinalityType(CardinalityType type);

    public boolean isChoiceSegment();
    public boolean isChoiceMemberSegment();
    public int getMaxCardinality();
    public int getMinCardinality();
}

@@ -166,17 +166,17 @@
 ava,v 1.
-4
+5
  2007-07
@@ -183,20 +183,20 @@
 -16 19:4
-4:55
+6:19
  wangeug
@@ -3178,17 +3178,17 @@
 sion: 1.
-4
+5
  $%0A * @d
@@ -3224,12 +3224,12 @@
 19:4
-4:55
+6:19
  $%0A 
@@ -4225,8 +4225,9 @@
 ty();%0A%7D%0A
+%0A

change UIUID to xmlPath