cfa.vo.iris.sed
Class XSed
java.lang.Object
cfa.vo.iris.utils.List<IXSegment>
cfa.vo.iris.sed.XSed
- All Implemented Interfaces:
- IXSed, IList<IXSegment>, Iterable<IXSegment>
public class XSed
- extends List<IXSegment>
- implements IXSed
- Author:
- olaurino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XSed
public XSed(String id)
XSed
public XSed(String id,
IList<IXSegment> elements)
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.