org.fopps.xml
Class XMLImport.Link

java.lang.Object
  |
  +--org.fopps.xml.XMLImport.Link
Direct Known Subclasses:
XMLImport.ConstraintLink, XMLImport.FeatureLink, XMLImport.ProductConfigLink, XMLImport.ProjectFeatureLink, XMLImport.ProjectLink
Enclosing class:
XMLImport

public abstract class XMLImport.Link
extends java.lang.Object

Abstract base class for a links


Constructor Summary
XMLImport.Link(java.lang.String from, java.lang.String to)
           
XMLImport.Link(java.lang.String from, java.lang.String to, java.lang.String desc)
           
 
Method Summary
 java.lang.String getFrom()
           
 java.lang.String getTo()
           
abstract  boolean resolve()
          Fetches the corresponding instances to the given ID's and glues them together
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLImport.Link

public XMLImport.Link(java.lang.String from,
                      java.lang.String to,
                      java.lang.String desc)

XMLImport.Link

public XMLImport.Link(java.lang.String from,
                      java.lang.String to)
Method Detail

getFrom

public java.lang.String getFrom()

getTo

public java.lang.String getTo()

resolve

public abstract boolean resolve()
Fetches the corresponding instances to the given ID's and glues them together


toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.


Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.