/** * {@inheritDoc} * <p> * May be replaced or extended by subclasses. * </p> * * @since 2.2 */ public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * {@inheritDoc} * <p> * May be replaced or extended by subclasses. * </p> */ @Override public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * {@inheritDoc} * <p> * May be replaced or extended by subclasses. * </p> */ @Override public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * Sets the offsets of the variable. * * @param offsets the new offsets of the variable */ public void setOffsets(int[] offsets) { fOffsets= TextUtilities.copy(offsets); }
/** * Sets the offsets of the variable. * * @param offsets the new offsets of the variable */ public void setOffsets(int[] offsets) { fOffsets= TextUtilities.copy(offsets); }
@Override public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
@Override public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * {@inheritDoc} * <p> * May be replaced or extended by subclasses. * </p> */ public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * {@inheritDoc} * <p> * May be replaced or extended by subclasses. * </p> */ public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
@Override public String[] getLegalLineDelimiters() { return TextUtilities.copy(fDelimiters); }
@Override public String[] getLegalContentTypes() { return TextUtilities.copy(fLegalContentTypes); }
/** * Creates a standard line tracker for the given line delimiters. * * @param legalLineDelimiters the tracker's legal line delimiters, * may not be <code>null</code> and must be longer than 0 */ public ConfigurableLineTracker(String[] legalLineDelimiters) { Assert.isTrue(legalLineDelimiters != null && legalLineDelimiters.length > 0); fDelimiters= TextUtilities.copy(legalLineDelimiters); }
/** * Creates a standard line tracker for the given line delimiters. * * @param legalLineDelimiters the tracker's legal line delimiters, * may not be <code>null</code> and must be longer than 0 */ public ConfigurableLineTracker(String[] legalLineDelimiters) { Assert.isTrue(legalLineDelimiters != null && legalLineDelimiters.length > 0); fDelimiters= TextUtilities.copy(legalLineDelimiters); }
/** * Creates a new partitioner that uses the given scanner and may return * partitions of the given legal content types. * * @param scanner the scanner this partitioner is supposed to use * @param legalContentTypes the legal content types of this partitioner */ public DefaultPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) { fScanner= scanner; fLegalContentTypes= TextUtilities.copy(legalContentTypes); fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); }
/** * Creates a new partitioner that uses the given scanner and may return * partitions of the given legal content types. * * @param scanner the scanner this partitioner is supposed to use * @param legalContentTypes the legal content types of this partitioner */ public RuleBasedPartitioner(RuleBasedScanner scanner, String[] legalContentTypes) { fScanner= scanner; fLegalContentTypes= TextUtilities.copy(legalContentTypes); fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); }
/** * Creates a new partitioner that uses the given scanner and may return * partitions of the given legal content types. * * @param scanner the scanner this partitioner is supposed to use * @param legalContentTypes the legal content types of this partitioner */ public FastPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) { fScanner= scanner; fLegalContentTypes= TextUtilities.copy(legalContentTypes); fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); }
/** * Creates a new partitioner that uses the given scanner and may return * partitions of the given legal content types. * * @param scanner the scanner this partitioner is supposed to use * @param legalContentTypes the legal content types of this partitioner */ public FastPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) { fScanner= scanner; fLegalContentTypes= TextUtilities.copy(legalContentTypes); fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); }
/** * Creates a new partitioner that uses the given scanner and may return * partitions of the given legal content types. * * @param scanner the scanner this partitioner is supposed to use * @param legalContentTypes the legal content types of this partitioner */ public DefaultPartitioner(IPartitionTokenScanner scanner, String[] legalContentTypes) { fScanner= scanner; fLegalContentTypes= TextUtilities.copy(legalContentTypes); fPositionCategory= CONTENT_TYPES_CATEGORY + hashCode(); fPositionUpdater= new DefaultPositionUpdater(fPositionCategory); }
/** * Resolves the variable to several possible values for this variable, with the first being the * default value. * * @param values a non-empty array of values */ public void setValues(String[] values) { Assert.isTrue(values.length > 0); fValues= TextUtilities.copy(values); setResolved(true); }
/** * Resolves the variable to several possible values for this variable, with the first being the * default value. * * @param values a non-empty array of values */ public void setValues(String[] values) { Assert.isTrue(values.length > 0); fValues= TextUtilities.copy(values); setResolved(true); }