net.aerith.misao.xml
Class XmlMagRecord

java.lang.Object
  |
  +--net.aerith.misao.xml.IONode
        |
        +--net.aerith.misao.xml.relaxer.XmlMagRecord
              |
              +--net.aerith.misao.xml.XmlMagRecord

public class XmlMagRecord
extends XmlMagRecord
implements XmlDBRecord, StringOutputtable

The XmlMagRecord is an application side implementation of the class that the relaxer generated automatically.

See Also:
Serialized Form

Fields inherited from class net.aerith.misao.xml.relaxer.XmlMagRecord
blending, catalog, chip, date, discarded, filter, imageXmlPath, imported, instruments, mag, name, note, observer, parentRNode, pixelsFromEdge, position, preempted, rContext, reported, unofficial
 
Constructor Summary
XmlMagRecord()
          Construct an XmlMagRecord.
XmlMagRecord(XmlInformation info, XmlStar star)
          Construct an XmlMagRecord of the specified star.
 
Method Summary
 void addBlending(CatalogStar star)
          Adds the blending star.
 boolean blending(CatalogStar star)
          Returns true if the specified catalog star has been already blended.
 XmlDBRecord create()
          Creates an empty XmlDBRecord object.
 MagnitudeRecordAttributes getAttributes()
          Gets the attributes.
 java.lang.String getID()
          Gets the ID.
 java.lang.String getOutputString()
          Returns a string representation of the state of this object.
 boolean isReportedToVsnet()
          Returns true when the record is already reported to VSNET.
 boolean isReportedToVsolj()
          Returns true when the record is already reported to VSOLJ.
 void setAttributes(MagnitudeRecordAttributes attributes)
          Sets the attributes.
 void setReportedToVsnet()
          Sets the record to be reported to VSNET.
 void setReportedToVsolj()
          Sets the record to be reported to VSOLJ.
 
Methods inherited from class net.aerith.misao.xml.relaxer.XmlMagRecord
addBlending, addReported, getBlending, getCatalog, getChip, getDate, getDiscarded, getFilter, getImageXmlPath, getImported, getInstruments, getMag, getName, getNote, getObserver, getParentRNode, getPixelsFromEdge, getPosition, getPreempted, getRContext, getRContextResolved, getReported, getRNodes, getUnofficial, init, isMatch, isMatch, isMatchHungry, makeElement, setBlending, setCatalog, setChip, setDate, setDiscarded, setFilter, setImageXmlPath, setImported, setInstruments, setMag, setName, setNote, setObserver, setParentRNode, setPixelsFromEdge, setPosition, setPreempted, setRContext, setReported, setUnofficial, setup, setup, setup
 
Methods inherited from class net.aerith.misao.xml.IONode
read, read, translateFrom, translateTo, write, write
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

XmlMagRecord

public XmlMagRecord()
Construct an XmlMagRecord.

XmlMagRecord

public XmlMagRecord(XmlInformation info,
                    XmlStar star)
             throws DocumentIncompleteException
Construct an XmlMagRecord of the specified star.
Parameters:
info - the image information.
star - the XML star element.
Throws:
DocumentIncompleteException - if some required data in the specified image information is not recorded.
Method Detail

isReportedToVsnet

public boolean isReportedToVsnet()
Returns true when the record is already reported to VSNET.
Returns:
true when the record is already reported to VSNET.

isReportedToVsolj

public boolean isReportedToVsolj()
Returns true when the record is already reported to VSOLJ.
Returns:
true when the record is already reported to VSOLJ.

setReportedToVsnet

public void setReportedToVsnet()
Sets the record to be reported to VSNET.

setReportedToVsolj

public void setReportedToVsolj()
Sets the record to be reported to VSOLJ.

getAttributes

public MagnitudeRecordAttributes getAttributes()
Gets the attributes.
Returns:
the attributes.

setAttributes

public void setAttributes(MagnitudeRecordAttributes attributes)
Sets the attributes.
Parameters:
attributes - the attributes.

create

public XmlDBRecord create()
Creates an empty XmlDBRecord object. This method must be overrided by the subclass.
Specified by:
create in interface XmlDBRecord
Returns:
the new empty object.

addBlending

public void addBlending(CatalogStar star)
Adds the blending star.
Parameters:
star - the blending catalog star.

blending

public boolean blending(CatalogStar star)
Returns true if the specified catalog star has been already blended.
Parameters:
sar - the catalog star.
Returns:
true if the specified catalog star has been already blended.

getID

public java.lang.String getID()
Gets the ID.
Specified by:
getID in interface XmlDBRecord
Returns:
the ID.

getOutputString

public java.lang.String getOutputString()
Returns a string representation of the state of this object.
Specified by:
getOutputString in interface StringOutputtable
Returns:
a string representation of the state of this object.