blob: 6e4ca282393df74256162251f36d3672b76d05be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*******************************************************************************
* Copyright (c) 2011 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.client.demo.traceability;
import java.nio.CharBuffer;
import java.util.Collection;
import java.util.HashSet;
import org.eclipse.osee.define.traceability.ITraceParser;
import org.eclipse.osee.define.traceability.data.TraceMark;
/**
* @author John R. Misinco
*/
public class DemoTraceParser implements ITraceParser {
@Override
public Collection<TraceMark> getTraceMarks(CharBuffer fileBuffer) {
Collection<TraceMark> traceMarks = new HashSet<>();
String type = "Uses";
traceMarks.add(new TraceMark(type, "Collaborative Robot"));
traceMarks.add(new TraceMark(type, "Robot Object"));
traceMarks.add(new TraceMark(type, "Robot Interfaces"));
traceMarks.add(new TraceMark(type, "Individual robot events"));
traceMarks.add(new TraceMark(type, "Haptic Constraints"));
return traceMarks;
}
@Override
public CharBuffer removeTraceMarks(CharBuffer fileBuffer) {
return fileBuffer;
}
@Override
public boolean isTraceRemovalAllowed() {
return false;
}
@Override
public boolean addIfEmpty() {
return false;
}
}
|