cfa.vo.iris.sed
Class ExtSed

java.lang.Object
  extended by cfa.vo.sedlib.Sed
      extended by cfa.vo.iris.sed.ExtSed
All Implemented Interfaces:
cfa.vo.sedlib.ISed, Cloneable

public class ExtSed
extends cfa.vo.sedlib.Sed

Author:
olaurino

Field Summary
 
Fields inherited from class cfa.vo.sedlib.Sed
namespace, segmentList
 
Constructor Summary
ExtSed(String id)
           
ExtSed(String id, boolean managed)
           
 
Method Summary
 void addAttachment(String attachmentId, Object attachment)
           
 void addSegment(List<cfa.vo.sedlib.Segment> segments)
           
 void addSegment(List<cfa.vo.sedlib.Segment> segments, int offset)
           
 void addSegment(cfa.vo.sedlib.Segment segment)
           
 void addSegment(cfa.vo.sedlib.Segment segment, int offset)
           
 void checkChar()
           
 ExtSed clone()
           
 Object getAttachment(String attachmentId)
           
 String getId()
           
 int indexOf(cfa.vo.sedlib.Segment s)
           
static ExtSed read(String filename, cfa.vo.sedlib.io.SedFormat format)
           
static ExtSed read(String filename, cfa.vo.sedlib.io.SedFormat format, boolean managed)
           
 boolean remove(List<cfa.vo.sedlib.Segment> segments)
           
 boolean remove(cfa.vo.sedlib.Segment s)
           
 void removeAttachment(String attachmentId)
           
 void removeSegment(int i)
           
 void setId(String id)
           
 String toString()
           
 
Methods inherited from class cfa.vo.sedlib.Sed
equals, filterSed, filterSed, filterSed, getNamespace, getNumberOfSegments, getSegment, hashCode, isSetNamespace, read, setNamespace, validate, validate, write, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtSed

public ExtSed(String id)

ExtSed

public ExtSed(String id,
              boolean managed)
Method Detail

addSegment

public void addSegment(cfa.vo.sedlib.Segment segment)
                throws cfa.vo.sedlib.common.SedInconsistentException,
                       cfa.vo.sedlib.common.SedNoDataException
Specified by:
addSegment in interface cfa.vo.sedlib.ISed
Overrides:
addSegment in class cfa.vo.sedlib.Sed
Throws:
cfa.vo.sedlib.common.SedInconsistentException
cfa.vo.sedlib.common.SedNoDataException

addSegment

public void addSegment(cfa.vo.sedlib.Segment segment,
                       int offset)
                throws cfa.vo.sedlib.common.SedNoDataException,
                       cfa.vo.sedlib.common.SedInconsistentException
Specified by:
addSegment in interface cfa.vo.sedlib.ISed
Overrides:
addSegment in class cfa.vo.sedlib.Sed
Throws:
cfa.vo.sedlib.common.SedNoDataException
cfa.vo.sedlib.common.SedInconsistentException

addSegment

public void addSegment(List<cfa.vo.sedlib.Segment> segments)
                throws cfa.vo.sedlib.common.SedInconsistentException,
                       cfa.vo.sedlib.common.SedNoDataException
Specified by:
addSegment in interface cfa.vo.sedlib.ISed
Overrides:
addSegment in class cfa.vo.sedlib.Sed
Throws:
cfa.vo.sedlib.common.SedInconsistentException
cfa.vo.sedlib.common.SedNoDataException

addSegment

public void addSegment(List<cfa.vo.sedlib.Segment> segments,
                       int offset)
                throws cfa.vo.sedlib.common.SedInconsistentException,
                       cfa.vo.sedlib.common.SedNoDataException
Specified by:
addSegment in interface cfa.vo.sedlib.ISed
Overrides:
addSegment in class cfa.vo.sedlib.Sed
Throws:
cfa.vo.sedlib.common.SedInconsistentException
cfa.vo.sedlib.common.SedNoDataException

removeSegment

public void removeSegment(int i)
Specified by:
removeSegment in interface cfa.vo.sedlib.ISed
Overrides:
removeSegment in class cfa.vo.sedlib.Sed

getId

public String getId()

setId

public void setId(String id)

addAttachment

public void addAttachment(String attachmentId,
                          Object attachment)

getAttachment

public Object getAttachment(String attachmentId)

removeAttachment

public void removeAttachment(String attachmentId)

toString

public String toString()
Overrides:
toString in class Object

clone

public ExtSed clone()
Overrides:
clone in class cfa.vo.sedlib.Sed

remove

public boolean remove(cfa.vo.sedlib.Segment s)

remove

public boolean remove(List<cfa.vo.sedlib.Segment> segments)

indexOf

public int indexOf(cfa.vo.sedlib.Segment s)

read

public static ExtSed read(String filename,
                          cfa.vo.sedlib.io.SedFormat format)
                   throws cfa.vo.sedlib.common.SedParsingException,
                          cfa.vo.sedlib.common.SedInconsistentException,
                          IOException,
                          cfa.vo.sedlib.common.SedNoDataException
Throws:
cfa.vo.sedlib.common.SedParsingException
cfa.vo.sedlib.common.SedInconsistentException
IOException
cfa.vo.sedlib.common.SedNoDataException

read

public static ExtSed read(String filename,
                          cfa.vo.sedlib.io.SedFormat format,
                          boolean managed)
                   throws cfa.vo.sedlib.common.SedParsingException,
                          cfa.vo.sedlib.common.SedInconsistentException,
                          IOException,
                          cfa.vo.sedlib.common.SedNoDataException
Throws:
cfa.vo.sedlib.common.SedParsingException
cfa.vo.sedlib.common.SedInconsistentException
IOException
cfa.vo.sedlib.common.SedNoDataException

checkChar

public void checkChar()


Copyright © 2013. All rights reserved.