cfa.vo.iris.sed
Class XSed

java.lang.Object
  extended by cfa.vo.iris.utils.List<IXSegment>
      extended by cfa.vo.iris.sed.XSed
All Implemented Interfaces:
IXSed, IList<IXSegment>, Iterable<IXSegment>

public class XSed
extends List<IXSegment>
implements IXSed

Author:
olaurino

Constructor Summary
XSed(String id)
           
XSed(String id, IList<IXSegment> elements)
           
 
Method Summary
 void add(int position, IXSegment element)
          Add an element in a certain position.
 boolean add(IXSegment element)
          Add an element to this list.
 boolean addAll(Collection<? extends IXSegment> elements)
          Add a collection of elements this list.
 void addAttachment(String attachmentId, Object attachment)
           
 IList<IPoint> filterPoints(IPredicate<IPoint> predicate, String id)
           
 IList<IXSegment> filterSegments(IPredicate<IXSegment> predicate, String id)
           
 Object getAttachment(String attachmentId)
           
 Iterator iterator()
           
 boolean remove(IXSegment element)
          Remove an element from this list.
 void removeAttachment(String attachmentId)
           
 void setFluxUnits()
           
 void setSpectralUnits()
           
 
Methods inherited from class cfa.vo.iris.utils.List
addAll, filter, get, getElements, getId, isEmpty, setId, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cfa.vo.iris.utils.IList
addAll, get, getId, isEmpty, setId, size
 

Constructor Detail

XSed

public XSed(String id)

XSed

public XSed(String id,
            IList<IXSegment> elements)
Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<IXSegment>
Overrides:
iterator in class List<IXSegment>

add

public boolean add(IXSegment element)
            throws SedException
Description copied from interface: IList
Add an element to this list.

Specified by:
add in interface IList<IXSegment>
Overrides:
add in class List<IXSegment>
Parameters:
element - The element to be added.
Returns:
Throws:
SedException - An Exception is thrown when the element fails a compatibility check.

addAll

public boolean addAll(Collection<? extends IXSegment> elements)
               throws SedException
Description copied from interface: IList
Add a collection of elements this list.

Specified by:
addAll in interface IList<IXSegment>
Overrides:
addAll in class List<IXSegment>
Parameters:
elements - The elements to be added.
Returns:
Throws:
SedException - An Exception is thrown when an element in the collection fails a compatibility check.

add

public void add(int position,
                IXSegment element)
         throws SedException
Description copied from interface: IList
Add an element in a certain position.

Specified by:
add in interface IList<IXSegment>
Overrides:
add in class List<IXSegment>
Parameters:
position - The position in which the element has to be added.
element - The element to be added.
Throws:
SedException - SedException An Exception is thrown when the element fails a compatibility check.

remove

public boolean remove(IXSegment element)
Description copied from interface: IList
Remove an element from this list.

Specified by:
remove in interface IList<IXSegment>
Overrides:
remove in class List<IXSegment>
Parameters:
element - The element to be removed.
Returns:

filterSegments

public IList<IXSegment> filterSegments(IPredicate<IXSegment> predicate,
                                       String id)
Specified by:
filterSegments in interface IXSed

filterPoints

public IList<IPoint> filterPoints(IPredicate<IPoint> predicate,
                                  String id)
Specified by:
filterPoints in interface IXSed

setSpectralUnits

public void setSpectralUnits()
Specified by:
setSpectralUnits in interface IXSed

setFluxUnits

public void setFluxUnits()
Specified by:
setFluxUnits in interface IXSed

addAttachment

public void addAttachment(String attachmentId,
                          Object attachment)
Specified by:
addAttachment in interface IXSed

getAttachment

public Object getAttachment(String attachmentId)
Specified by:
getAttachment in interface IXSed

removeAttachment

public void removeAttachment(String attachmentId)
Specified by:
removeAttachment in interface IXSed


Copyright © 2013. All rights reserved.