ru.goodidea.df.dto
Class DtoLine

java.lang.Object
  extended by ru.goodidea.df.dto.DefaultDto
      extended by ru.goodidea.df.dto.DefaultComponentDto
          extended by ru.goodidea.df.dto.DtoLine
All Implemented Interfaces:
java.io.Serializable, Propertiable, XMLable, XMLFillable

public class DtoLine
extends DefaultComponentDto
implements XMLable

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
Konstantin Pupkov
See Also:
Serialized Form

Field Summary
protected  int fromNodeId
           
protected  int toNodeId
           
 
Fields inherited from interface ru.goodidea.df.xml.XMLFillable
ATTRIBUTE_HEIGHT, ATTRIBUTE_WIDTH, ATTRIBUTE_X, ATTRIBUTE_Y
 
Constructor Summary
protected DtoLine()
           
  DtoLine(int fromNodeId, int toNodeId)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 void fillXML(org.w3c.dom.Element root)
          fillXML
 int getFrom()
           
 java.util.Map<DtoRole,java.lang.Integer> getRoles()
           
 int getTo()
           
 int hashCode()
          Returns a hash code value for the object.
 void restoreXML(org.w3c.dom.Element root)
          restoreXML
 void setFrom(int from)
           
 void setRole(DtoRole role, java.lang.Integer rolesFunction)
           
 void setRoles(java.util.Map<DtoRole,java.lang.Integer> roles)
           
 void setTo(int to)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class ru.goodidea.df.dto.DefaultComponentDto
getEnd, getStart, setEnd, setStart
 
Methods inherited from class ru.goodidea.df.dto.DefaultDto
getDescription, getDisplayName, getId, getName, setDescription, setDisplayName, setId, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fromNodeId

protected int fromNodeId

toNodeId

protected int toNodeId
Constructor Detail

DtoLine

protected DtoLine()

DtoLine

public DtoLine(int fromNodeId,
               int toNodeId)
Method Detail

getFrom

public int getFrom()

getTo

public int getTo()

setFrom

public void setFrom(int from)

setTo

public void setTo(int to)

restoreXML

public void restoreXML(org.w3c.dom.Element root)
restoreXML

Specified by:
restoreXML in interface XMLable
Overrides:
restoreXML in class DefaultComponentDto
Parameters:
root - Element

fillXML

public void fillXML(org.w3c.dom.Element root)
fillXML

Specified by:
fillXML in interface XMLFillable
Overrides:
fillXML in class DefaultComponentDto
Parameters:
root - Element

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.

Overrides:
equals in class DefaultComponentDto
Parameters:
obj - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class DefaultComponentDto
Returns:
a hash code value for this object.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class DefaultDto
Returns:
a string representation of the object.

getRoles

public java.util.Map<DtoRole,java.lang.Integer> getRoles()

setRoles

public void setRoles(java.util.Map<DtoRole,java.lang.Integer> roles)

setRole

public void setRole(DtoRole role,
                    java.lang.Integer rolesFunction)


Copyright © 2009. All Rights Reserved.