View Javadoc
1 /* 2 * Copyright (c) 2003 3 * Information Desire GmbH 4 * All rights reserved. 5 */ 6 package com.infodesire.infobit.external.impl; 7 8 /*** 9 * Describes a generic dependency of an item to import. 10 * 11 * @author peter2 12 * @created August 28, 2003 13 * @version $Revision: 1.1 $ 14 */ 15 class BufferEdge { 16 17 /*** 18 * The target of the edge 19 */ 20 private BufferNode _dependency; 21 22 /*** 23 * The system ID of the location of the represented element, or <code>null</code> 24 * if not available. 25 */ 26 private String _systemID; 27 28 /*** 29 * The line of the location of the represented element, or <code>0</code> if 30 * not available 31 */ 32 private int _line; 33 34 35 /*** 36 * Initializes an instance from the destination link end. 37 * 38 * @param dep 39 */ 40 BufferEdge(BufferNode dep) { 41 _dependency = dep; 42 } 43 44 45 /*** 46 * Gets the end of the edge, ie the item which its start item depends on. 47 * 48 * @return The Dependency value 49 */ 50 BufferNode getDependency() { 51 return _dependency; 52 } 53 54 55 /*** 56 * Defines the location of the representing XML. 57 * 58 * @param systemID The system ID of the location 59 * @param line The line of the location 60 */ 61 void setLocation(String systemID, int line) { 62 _systemID = systemID; 63 _line = line; 64 } 65 66 67 /*** 68 * Yields the system ID of the location where the represented XML element 69 * starts. 70 * 71 * @return Description of the Returned Value 72 */ 73 String locateSystemID() { 74 return _systemID; 75 } 76 77 78 /*** 79 * Yields line information on the location where the represented XML element 80 * starts. 81 * 82 * @return Description of the Returned Value 83 */ 84 int locateLine() { 85 return _line; 86 } 87 88 }

This page was automatically generated by Maven