1,5 → 1,5 |
/* |
* Copyright 2012 Brian Rosenberger (Brutex Network) |
* Copyright 2013 Brian Rosenberger (Brutex Network) |
* |
* Licensed under the Apache License, Version 2.0 (the "License"); |
* you may not use this file except in compliance with the License. |
16,35 → 16,30 |
|
package net.brutex.xservices.types; |
|
import java.math.BigInteger; |
import java.util.ArrayList; |
import java.util.List; |
|
import javax.xml.bind.annotation.XmlType; |
|
import com.sun.xml.txw2.annotation.XmlElement; |
|
|
|
/** |
* @author Brian Rosenberger, bru(at)brutex.de |
* |
* @author Brian Rosenberger, bru@brutex.de |
*/ |
|
@XmlType |
public class StringMatchType { |
public final List<StringMatchDetails> stringlist = new ArrayList<StringMatchDetails>(); |
public class StringMatchType |
{ |
public final List<StringMatchDetails> stringlist = new ArrayList(); |
public int size=0; |
|
public StringMatchType() {} |
|
|
public synchronized void addStringMatch(StringMatchDetails match) { |
public synchronized void addStringMatch(StringMatchDetails match) |
{ |
this.stringlist.add(match); |
this.size++; |
this.size += 1; |
} |
|
public synchronized void addStringMatch(long start, long end, String content) { |
StringMatchDetails details = new StringMatchDetails(start, end, content); |
this.addStringMatch( details ); |
public synchronized void addStringMatch(long start, long end, String group, String content) { |
StringMatchDetails details = new StringMatchDetails(start, end, group, content); |
addStringMatch(details); |
} |
} |