rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
"send must not be lower than sstart: sstart=" + start + ", send=" + send
"Requested end must not be lower than start: start=" + sstart + ", end=" + send
public SymbolList subList(int sstart, int send) { if (sstart < 1 || send > length()) { throw new IndexOutOfBoundsException( "Sublist index out of bounds " + length() + ":" + start + "," + send ); } if (send < sstart) { throw new IndexOutOfBoundsException( ...
public final void addChangeListener(ChangeListener cl, ChangeType ct) { ChangeSupport cs = getChangeSupport(ct); cs.addChangeListener(cl, ct);
public final void addChangeListener(ChangeListener cl) { addChangeListener(cl, ChangeType.UNKNOWN);
public final void addChangeListener(ChangeListener cl, ChangeType ct) { ChangeSupport cs = getChangeSupport(ct); cs.addChangeListener(cl, ct); }
this.matchGroup = matchGroup;
public RegexSplitter(Pattern pattern, int matchGroup) { this.pattern = pattern; }
public UnigeneDB createUnigene(URL unigeneDir) throws IOException, BioException;
public UnigeneDB createUnigene(URL unigeneURL) throws BioException;
public UnigeneDB createUnigene(URL unigeneDir) throws IOException, BioException;
public UnigeneDB loadUnigene(URL unigeneDir) throws IOException, BioException;
public UnigeneDB loadUnigene(URL unigeneURL) throws BioException;
public UnigeneDB loadUnigene(URL unigeneDir) throws IOException, BioException;
this.annotation = new SimpleAnnotation(annotation);
this.annotation = new SimpleAnnotation(template.annotation);
public SimpleFeature(Sequence sourceSeq, Feature.Template template) { this.sourceSeq = sourceSeq; this.loc = template.location; this.type = template.type; this.source = template.source; this.annotation = new SimpleAnnotation(annotation); }
System.err.println("Adding " + tf.templateClass.getName());
public static void addFeatureImplementation(TemplateFeature tf) { templateClassToFeatureClass.add(0, tf); }
public SimpleAnnotation(Annotation ann) { for(Iterator i = ann.keys().iterator(); i.hasNext(); ) { Object key = i.next(); try { setProperty(key, ann.getProperty(key)); } catch (IllegalArgumentException iae) { throw new BioError( iae, "Property was there and then dissapeared: " + key ); } }
public SimpleAnnotation() {
public SimpleAnnotation(Annotation ann) { for(Iterator i = ann.keys().iterator(); i.hasNext(); ) { Object key = i.next(); try { setProperty(key, ann.getProperty(key)); } catch (IllegalArgumentException iae) { throw new BioError( iae, "Property was there and then dissa...
public boolean contains(int p) { return getWrapped().contains(p);
public boolean contains(Location l) { return getWrapped().contains(l);
public boolean contains(int p) { return getWrapped().contains(p); }
LocalVariable maxDB = new LocalVariable(CodeUtils.TYPE_DOUBLE, "max"); InstructionVector dbi = new InstructionVector(); dbi.add( ByteCode.make_dload (max)); dbi.add( ByteCode.make_dstore (maxDB)); dbi.add( message("Max " + i + " = ", maxDB)); stateV.add( debug(dbi));
private CodeGenerator createFRecursion( boolean isInit, MarkovModel model, State[] states, AlphabetIndex stateIndex, CodeField stateF, CodeField [] transitionFields, AlphabetIndex[] transitionIndexers, GeneratedCodeMethod method ) throws NoSuchMethodException, NoSuchFieldException, I...
public static AlphabetIndex getAlphabetIndex ( Symbol[] syms ) throws IllegalSymbolException, BioException { return new LinearAlphabetIndex(syms);
public static AlphabetIndex getAlphabetIndex( FiniteAlphabet alpha ) { final int generateIndexSize = 160; AlphabetIndex ai = (AlphabetIndex) alphabetToIndex.get(alpha); if(ai == null) { int size = alpha.size(); if(size <= generateIndexSize) { ai = new LinearAlphabetIndex(alpha); } else { ai = new HashedAlphabetIndex(al...
public static AlphabetIndex getAlphabetIndex ( Symbol[] syms ) throws IllegalSymbolException, BioException { return new LinearAlphabetIndex(syms); }
this.alignment = alignment; this.score = score;
this.alignment = template.alignment; this.score = template.score;
public SimpleSimilarityPairFeature(Sequence sourceSeq, FeatureHolder parent, SimilarityPairFeature.Template template) throws IllegalAlphabetException { super(sourceSeq, parent, template); this.siblin...
throw new IllegalAlphabetException ( "Can not create a stranded feature within a sequence of type " + sourceSeq.getAlphabet().getName() );
public SimpleStrandedFeature(Sequence sourceSeq, FeatureHolder parent, StrandedFeature.Template template) throws IllegalArgumentException, IllegalAlphabetException { super(sourceSeq, parent, template); this.strand = template.strand; if(sourceSeq.getAlphabet() != DNATools.getDNA()) { throw new Illega...
int usForward, int usReverse,
public RestrictionEnzyme(String name, SymbolList site, int usForward, int usReverse, int dsForward, int dsReverse) throws IllegalAlphabetException { this(name, site, new int [] { usForward, usReverse }, new int [] { dsF...
new int [] { usForward, usReverse },
null,
public RestrictionEnzyme(String name, SymbolList site, int usForward, int usReverse, int dsForward, int dsReverse) throws IllegalAlphabetException { this(name, site, new int [] { usForward, usReverse }, new int [] { dsF...
cutType = CUT_COMPOUND;
cutType = CUT_SIMPLE;
public RestrictionEnzyme(String name, SymbolList site, int usForward, int usReverse, int dsForward, int dsReverse) throws IllegalAlphabetException { this(name, site, new int [] { usForward, usReverse }, new int [] { dsF...
public SimpleSymbolList(SymbolTokenization parser, String seqString) throws IllegalSymbolException { if (parser.getTokenType() == SymbolTokenization.CHARACTER) { symbols = new Symbol[seqString.length()]; } else { symbols = new Symbol[INCREMENT]; } char[] charArray = new char[1024]; int segLength = seqString.length(); S...
public SimpleSymbolList(Alphabet alpha) { this.alphabet = alpha; this.length = 0; this.symbols = new Symbol[INCREMENT];
public SimpleSymbolList(SymbolTokenization parser, String seqString) throws IllegalSymbolException { if (parser.getTokenType() == SymbolTokenization.CHARACTER) { symbols = new Symbol[seqString.length()]; } else { symbols = new Symbol[INCREMENT]; } char[] c...
System.out.println("ping!!");
private Object readResolve() throws ObjectStreamException{ System.out.println("ping!!"); return AlphabetManager.getGapSymbol(sq.getAlphas()); }
} else if(subConstraint instanceof Enumeration) { Set values = ((Enumeration) subConstraint).getValues(); for(Iterator i = values.iterator(); i.hasNext(); ) { if(!accept(i.next())) { return false; } } return true; } else if(subConstraint instanceof ExactValue) { return accept(((ExactValue) subConstraint).getValue());
public boolean subConstraintOf(PropertyConstraint subConstraint) { if (subConstraint instanceof ByClass) { ByClass sc = (ByClass) subConstraint; return cl.isAssignableFrom(sc.getPropertyClass()); } return false; }
} else if(subConstraint instanceof ExactValue) { return accept(((ExactValue) subConstraint).getValue());
public boolean subConstraintOf(PropertyConstraint subConstraint) { if (subConstraint instanceof Enumeration) { Enumeration subE = (Enumeration) subConstraint; return values.containsAll(subE.getValues()); } return false; }
return pc.accept(value);
if(pc instanceof ExactValue) { return value.equals(((ExactValue) pc).getValue()); } else if(pc instanceof Enumeration) { Enumeration e = (Enumeration) pc; return e.getValues().size() == 1 && e.accept(value); } return false;
public boolean subConstraintOf(PropertyConstraint pc) { return pc.accept(value); }
private final String getLocationText() {
final String getLocationText() {
private final String getLocationText() { return getLocation() == RichLocation.EMPTY_LOCATION?null:GenbankLocationParser.writeLocation(getLocation()); }
private void setDocumentReference(DocRef docref) { this.docref = docref; }
void setDocumentReference(DocRef docref) { this.docref = docref; }
private void setDocumentReference(DocRef docref) { this.docref = docref; }
private final void setLocationText(final String theLocation) throws ParseException {
final void setLocationText(final String theLocation) throws ParseException {
private final void setLocationText(final String theLocation) throws ParseException { if (theLocation == null) { makeLocation(RichLocation.EMPTY_LOCATION); } else { final RichLocation location = GenbankLocationParser.parseLocation(RichObjectFactory.getDefaultNamespace(), null, theLocation); ...
public SimpleRichLocation(Position min, Position max, int rank) { this(min,max,rank,Strand.POSITIVE_STRAND);
public SimpleRichLocation(Position pos, int rank) { this(pos,pos,rank,Strand.POSITIVE_STRAND);
public SimpleRichLocation(Position min, Position max, int rank) { this(min,max,rank,Strand.POSITIVE_STRAND); }
if(context.getDirection() == context.HORIZONTAL) {
if(context.getDirection() == SequenceRenderContext.HORIZONTAL) {
private void renderLink( Graphics2D g, Feature f, Location source, Location dest, SequenceRenderContext context ) { Line2D line = new Line2D.Double(); Point2D startP; Point2D midP; Point2D endP; double half = blockDepth * 0.5; if(context.getDirection() == context.HORIZONTAL) { if(getStra...
if(context.getDirection() == context.HORIZONTAL) {
if(context.getDirection() == SequenceRenderContext.HORIZONTAL) {
private void renderLocation( Graphics2D g, Location loc, SequenceRenderContext context ) { Rectangle2D.Double block = new Rectangle2D.Double(); double min = context.sequenceToGraphics(loc.getMin()); double max = context.sequenceToGraphics(loc.getMax()+1); if(context.getDirection() == context.HORIZONTA...
public IndexedCount(AlphabetIndex indexer) { indexer.addChangeListener(ChangeListener.ALWAYS_VETO, AlphabetIndex.INDEX); this.indexer = indexer; this.counts = new double[indexer.getAlphabet().size()]; this.alpha = indexer.getAlphabet();
public IndexedCount(FiniteAlphabet fa) { this(AlphabetManager.getAlphabetIndex(fa));
public IndexedCount(AlphabetIndex indexer) { indexer.addChangeListener(ChangeListener.ALWAYS_VETO, AlphabetIndex.INDEX); this.indexer = indexer; this.counts = new double[indexer.getAlphabet().size()]; this.alpha = indexer.getAlphabet(); }
super(sourceSeq, template);
super(sourceSeq, parent, template);
public BioSQLStrandedFeature(Sequence sourceSeq, StrandedFeature.Template template) throws IllegalArgumentException, IllegalAlphabetException { super(sourceSeq, template); this.strand = template.strand; }
Sequence getSequence(String id, int bioentry_id)
public Sequence getSequence(String id)
Sequence getSequence(String id, int bioentry_id) throws BioException, IllegalIDException { Sequence seq = null; if (id != null) { seq = (Sequence) sequencesByName.get(id); } else if (bioentry_id >= 0) { seq = (Sequence) sequencesByID.get(new Integer(bioentry_id)); } else { throw new BioError("...
Sequence seq = null; if (id != null) { seq = (Sequence) sequencesByName.get(id); } else if (bioentry_id >= 0) { seq = (Sequence) sequencesByID.get(new Integer(bioentry_id)); } else { throw new BioError("Neither a name nor an internal ID was supplied"); } if (seq != null) { return seq; } try { Connection conn = pool.t...
return getSequence(id, -1);
Sequence getSequence(String id, int bioentry_id) throws BioException, IllegalIDException { Sequence seq = null; if (id != null) { seq = (Sequence) sequencesByName.get(id); } else if (bioentry_id >= 0) { seq = (Sequence) sequencesByID.get(new Integer(bioentry_id)); } else { throw new BioError("...
public SimpleRichAnnotation() { this.notes = new TreeSet(); }
public SimpleRichAnnotation() {}
public SimpleRichAnnotation() { this.notes = new TreeSet(); // Keeps them ordered by rank then term }
if (term==null) throw new IllegalArgumentException("Term cannot be null"); if (members==null || members.size()<2) throw new IllegalArgumentException( "Members collection must have at least 2 members. Term: "+term+ " number of members: "+members.size()); this.term = term; this.members = new ArrayList(members); for (int ...
this(term,members,true);
public CompoundRichLocation(ComparableTerm term, Collection members) { if (term==null) throw new IllegalArgumentException("Term cannot be null"); if (members==null || members.size()<2) throw new IllegalArgumentException( "Members collection must have at least 2 members. Term: "+term+ ...
return new TranslatedSymbolList(new ReverseSymbolList(list), complementTable());
return SymbolListViews.translate(SymbolListViews.reverse(list), complementTable());
public static SymbolList reverseComplement(SymbolList list) throws IllegalAlphabetException { return new TranslatedSymbolList(new ReverseSymbolList(list), complementTable()); }
nodes.add(start = new Node(START)); nodes.add(end = new Node(END));
FiniteAutomaton(String name, FiniteAlphabet alfa) { this.alfa = alfa; this.name = name; alfaIdx = AlphabetManager.getAlphabetIndex(alfa); }
Node addNode(boolean terminal)
public Node addNode(boolean terminal)
Node addNode(boolean terminal) { Node node = new Node(terminal); nodes.add(node); return node; }
void addTransition(Node start, Node end, Symbol sym)
public Transition addTransition(Node start, Node end, Symbol sym)
void addTransition(Node start, Node end, Symbol sym) { transitions.add(new Transition(start, end, sym)); }
transitions.add(new Transition(start, end, sym));
Transition newTransition = new Transition(start, end, sym); transitions.add(newTransition); return newTransition;
void addTransition(Node start, Node end, Symbol sym) { transitions.add(new Transition(start, end, sym)); }
NodeSet createNodeSet() { return new NodeSet(); }
public NodeSet createNodeSet() { return new NodeSet(); }
NodeSet createNodeSet() { return new NodeSet(); }
Node getEnd() { return end; }
public Node getEnd() { return end; }
Node getEnd() { return end; }
NodeSet getNodes()
public NodeSet getNodes()
NodeSet getNodes() { NodeSet nodeSet = createNodeSet(); nodeSet.addAll(nodes); return nodeSet; }
Node getStart() { return start; }
public Node getStart() { return start; }
Node getStart() { return start; }
Set getTransitions()
public Set getTransitions()
Set getTransitions() { return Collections.unmodifiableSet(transitions); }
int translation)
int translation, boolean oppositeStrand)
public ProjectedFeatureHolder(FeatureHolder fh, FeatureHolder parent, int translation) { this.wrapped = fh; this.parent = parent; this.translate = translation; }
this.oppositeStrand = oppositeStrand; underlyingFeaturesChange = new ChangeListener() { public void preChange(ChangeEvent e) throws ChangeVetoException { if (changeSupport != null) { changeSupport.firePreChangeEvent(new ChangeEvent(this, FeatureHolder.FEATURES, e.getChange(), e.getPrevious(), e)); } } public void pos...
public ProjectedFeatureHolder(FeatureHolder fh, FeatureHolder parent, int translation) { this.wrapped = fh; this.parent = parent; this.translate = translation; }
return oldLoc.translate(translate);
if (oppositeStrand) { if (oldLoc.isContiguous()) { return new RangeLocation(translate - oldLoc.getMax(), translate - oldLoc.getMin()); } else { Location compound = Location.empty; for (Iterator i = oldLoc.blockIterator(); i.hasNext(); ) { Location oldBlock = (Location) i.next(); compound = compound.union(new RangeLocat...
public Location getProjectedLocation(Location oldLoc) { return oldLoc.translate(translate); }
public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cve) { throw new BioError( "Assertion faile...
public FeatureHolder filter(FeatureFilter filter) { boolean recurse = !FilterUtils.areProperSubset(filter, FeatureFilter.top_level); return filter(filter, recurse);
public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cv...
return res; }
public FeatureHolder filter(FeatureFilter ff, boolean recurse) { SimpleFeatureHolder res = new SimpleFeatureHolder(); for(Iterator f = features(); f.hasNext();) { Feature feat = (Feature) f.next(); if(ff.accept(feat)) { try { res.addFeature(feat); } catch (ChangeVetoException cv...
return new TranslatedSymbolList(list, transcriptionTable());
return SymbolListViews.translate(list, transcriptionTable());
public static SymbolList transcribe(SymbolList list) throws IllegalAlphabetException { return new TranslatedSymbolList(list, transcriptionTable()); }
return new TranslatedSymbolList(syms, getGeneticCode("UNIVERSAL"));
return SymbolListViews.translate(syms, getGeneticCode("UNIVERSAL"));
public static SymbolList translate(SymbolList syms) throws IllegalAlphabetException { return new TranslatedSymbolList(syms, getGeneticCode("UNIVERSAL")); }
entryAnnotationListeners = new HashMap();
BioSQLChangeHub(BioSQLSequenceDB seqDB) { super(); featureAnnotationListeners = new HashMap(); featureListeners = new HashMap(); entryListeners = new HashMap(); databaseListeners = new ArrayList(); queue = new ReferenceQueue(); this.seqDB = seqDB; }
List listenerList = (List) featureListeners.get(((FeatureAnnotationListenerReference) ref).getKey());
List listenerList = (List) featureAnnotationListeners.get(((FeatureAnnotationListenerReference) ref).getKey()); if (listenerList != null) { for (Iterator i = listenerList.iterator(); i.hasNext(); ) { ListenerMemento lm = (ListenerMemento) i.next(); if (lm.listener == ref) { i.remove(); break; } } } } else if (ref insta...
private void diddleQueue() { Reference ref; while ((ref = queue.poll()) != null) { if (ref instanceof FeatureListenerReference) { List listenerList = (List) featureListeners.get(((FeatureListenerReference) ref).getKey()); if (listenerList != null) { for (Iterator i = listenerList.iterator(); i.hasNext();...
Feature parent = seqDB.getFeatureByID(id.intValue()); ChangeEvent pcev = new ChangeEvent(parent, Annotatable.ANNOTATION, null, null, cev); fireFeaturePostChange(pcev);
public void fireFeatureAnnotationPostChange(ChangeEvent cev) { BioSQLFeatureAnnotation source = (BioSQLFeatureAnnotation) cev.getSource(); Integer id = new Integer(source.getFeatureID()); ChangeType ct = cev.getType(); List listenerList = (List) featureAnnotationListeners.get(id); if (listenerList != null) { ...
Feature parent = seqDB.getFeatureByID(id.intValue()); ChangeEvent pcev = new ChangeEvent(parent, Annotatable.ANNOTATION, null, null, cev); fireFeaturePreChange(pcev);
public void fireFeatureAnnotationPreChange(ChangeEvent cev) throws ChangeVetoException { BioSQLFeatureAnnotation source = (BioSQLFeatureAnnotation) cev.getSource(); Integer id = new Integer(source.getFeatureID()); ChangeType ct = cev.getType(); List listenerList = (List) featureAnnotationListeners.get(id...
Graphics2D g, Feature f,
Graphics2D g2, Feature feat,
void renderFeature( Graphics2D g, Feature f, SequenceRenderContext context );
if (!objects.containsKey(clazz)) objects.put(clazz,new HashMap()); Map contents = (Map)objects.get(clazz); if (!contents.containsKey(params)) contents.put(params, builder.buildObject(clazz, params)); return contents.get(params);
return builder.buildObject(clazz, params);
public static synchronized Object getObject(Class clazz, Object[] params) { // put the class into the hashmap if not there already if (!objects.containsKey(clazz)) objects.put(clazz,new HashMap()); Map contents = (Map)objects.get(clazz); // put the constructed object into the hashmap if ...
int ourRank = (this.rank==null?0:this.rank.intValue());
int ourRank = (this.getRank()==null?0:this.rank.intValue());
public int compareTo(Object o) { // Hibernate comparison - we haven't been populated yet if (this.object==null) return -1; // Normal comparison BioEntryRelationship them = (BioEntryRelationship)o; int ourRank = (this.rank==null?0:this.rank.intValue()); int theirRank = (them...
return (this.subject.equals(them.getSubject()) &&
if(this.getRank() == null && them.getRank() == null){ return (this.subject.equals(them.getSubject()) &&
public boolean equals(Object obj) { if (this == obj) return true; if (obj==null || !(obj instanceof BioEntryRelationship)) return false; // Hibernate comparison - we haven't been populated yet if (this.object==null) return false; // Normal comparison BioEntryRelationship th...
this.term.equals(them.getTerm()));
this.term.equals(them.getTerm())); } if(this.getRank() != null && them.getRank() != null){ return (this.subject.equals(them.getSubject()) && this.object.equals(them.getObject()) && this.term.equals(them.getTerm()) && this.rank.equals(them.getRank())); } return false;
public boolean equals(Object obj) { if (this == obj) return true; if (obj==null || !(obj instanceof BioEntryRelationship)) return false; // Hibernate comparison - we haven't been populated yet if (this.object==null) return false; // Normal comparison BioEntryRelationship th...
code = code*37 + (this.getRank() == null ? 0 : this.rank.hashCode());
public int hashCode() { int code = 17; // Hibernate comparison - we haven't been populated yet if (this.subject==null) return code; // Normal comparison code = code*37 + this.object.hashCode(); code = code*37 + this.subject.hashCode(); code = code*37 + this.term.hash...
int words = 2 << (
int words = 1 << (
public DataStore buildDataStore( File storeFile, SequenceDB seqDB, Packing packing, int wordLength, int threshold ) throws IllegalAlphabetException, IOException, BioException { ByteArrayOutputStream packingStream = new ByteArrayOutputStream(); ObjectOutputStream packingSerializer = new...
0.5, 0.8
0.2, 0.8
public static void main(String [] args) { try { if(args.length != 2) { throw new Exception("Use: PairwiseAlignment sourceSeqFile targetSeqFile"); } File sourceSeqFile = new File(args[0]); File targetSeqFile = new File(args[1]); FiniteAlphabet alpha = ProteinTools.getAlphabet()...
public SimpleDotState(String name) { super(name, name.charAt(0), Annotation.EMPTY_ANNOTATION);
public SimpleDotState(char symbol, String name, Annotation annotation) { super(name, symbol, annotation);
public SimpleDotState(String name) { super(name, name.charAt(0), Annotation.EMPTY_ANNOTATION); }
Class circularDecoratorClass; Class betweenDecoratorClass; try { circularDecoratorClass = Class.forName("org.biojava.bio.symbol.CircularLocation"); betweenDecoratorClass = Class.forName("org.biojava.bio.symbol.BetweenLocation"); } catch (ClassNotFoundException cnfe) { throw new org.biojava.bio.BioError("CircularLocatio...
boolean hasCircular = theLocation.getDecorator(CircularLocation.class) != null; boolean hasBetween = theLocation.getDecorator(BetweenLocation.class) != null;
protected static boolean isDecorated(Location theLocation) { // If you know a cleaner way to do this, please change it and drop me a line // gcox@netgenics.com Class circularDecoratorClass; Class betweenDecoratorClass; try { circularDecoratorClass = Class.forName("org.biojava.bio.symbol.CircularLocation"); b...
Location l = f.getLocation();
public void paint(Graphics2D g, SequenceRenderContext src) { FeatureFilter filt = FilterUtils.overlapsLocation(GUITools.getVisibleRange(src, g)); FeatureHolder feats = src.getFeatures().filter(filt, false); for (Iterator i =feats.features(); i.hasNext();) { Shape clip = g.getClip(); AffineTransform...
if (oVersion.getProgram() == oVersion.GCG) {
if (oVersion.getProgram() == BlastLikeVersionSupport.GCG) {
private void interpret(BufferedReader poContents, String poLine) throws SAXException { //For a brand new collection, //check for the start of a new BlastDataSet if (iState == STARTUP) { //look for characteristic of start of dataset if (oVersion.isStartOfDataSet(poLi...
if (a instanceof FeatureFilter.AcceptAllFilter) {
if (a == all()) {
public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { // Preconditions if (a == null) { throw new NullPointerException("Null FeatureFilter: a"); } if (b == null) { throw new NullPointerException("Null FeatureFilter: b"); } // Body if...
} else if(b instanceof FeatureFilter.AcceptAllFilter) {
} else if(b == all()) {
public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { // Preconditions if (a == null) { throw new NullPointerException("Null FeatureFilter: a"); } if (b == null) { throw new NullPointerException("Null FeatureFilter: b"); } // Body if...
} else if (a instanceof FeatureFilter.AcceptNoneFilter || b instanceof FeatureFilter.AcceptNoneFilter) {
} else if (a == none() || b == none()) {
public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { // Preconditions if (a == null) { throw new NullPointerException("Null FeatureFilter: a"); } if (b == null) { throw new NullPointerException("Null FeatureFilter: b"); } // Body if...
if (sup instanceof FeatureFilter.AcceptAllFilter) {
if (sup == all()) {
public static boolean areProperSubset(FeatureFilter sub, FeatureFilter sup) { // Preconditions if (sub == null) { throw new NullPointerException("Null FeatureFilter: sub"); } if (sup == null) { throw new NullPointerException("Null FeatureFilter: sup"); } // Bo...
} else if (sub instanceof FeatureFilter.AcceptNoneFilter) {
} else if (sub == none()) {
public static boolean areProperSubset(FeatureFilter sub, FeatureFilter sup) { // Preconditions if (sub == null) { throw new NullPointerException("Null FeatureFilter: sub"); } if (sup == null) { throw new NullPointerException("Null FeatureFilter: sup"); } // Bo...
return and((FeatureFilter[]) filters.toArray(new Feature[] {}));
return and((FeatureFilter[]) filters.toArray(new FeatureFilter[] {}));
public final static FeatureFilter optimize(FeatureFilter filter) { if(filter instanceof FeatureFilter.And) { List filters = new ArrayList(); expandAnd(filter, filters); int i = 0; int j = 0; do { FeatureFilter aa = (FeatureFilter) filters.get(i); FeatureFilter bb ...
return or((FeatureFilter[] ) filters.toArray(new Feature[] {}));
return or((FeatureFilter[] ) filters.toArray(new FeatureFilter[] {}));
public final static FeatureFilter optimize(FeatureFilter filter) { if(filter instanceof FeatureFilter.And) { List filters = new ArrayList(); expandAnd(filter, filters); int i = 0; int j = 0; do { FeatureFilter aa = (FeatureFilter) filters.get(i); FeatureFilter bb ...
boolean isDisjoint(FeatureFilter filt);
public boolean isDisjoint(FeatureFilter filt);
boolean isDisjoint(FeatureFilter filt);
boolean isProperSubset(FeatureFilter sup);
public boolean isProperSubset(FeatureFilter sup);
boolean isProperSubset(FeatureFilter sup);
System.err.println("intersection: " + ann1 + ", " + ann2);
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("ann2.subTypeOf(ann1)");
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("ann1.subTypeOf(ann2)");
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("key: " + key);
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("empty cardinality");
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("incompattible types");
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("setting: " + key + " " + pc + " " + cc);
public static AnnotationType intersection( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("intersection: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) {System.err.println("ann2.subTypeOf(ann1)"); return ann2; } else if(ann2.subTypeOf(ann1)) {System.err.println("ann1...
System.err.println("Finding union of: " + ann1 + ", " + ann2);
public static AnnotationType union( AnnotationType ann1, AnnotationType ann2 ) {System.err.println("Finding union of: " + ann1 + ", " + ann2); if(ann1.subTypeOf(ann2)) { return ann1; } else if(ann2.subTypeOf(ann1)) { return ann2; } else { Set props = new HashSet(); ...
private Layer getStatement(IWContext iwc) throws RemoteException {
private Layer getStatement(String communeNumber, String personalId, IWContext iwc) throws RemoteException {
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
table.setCellpadding(3);
table.setCellpadding(0);
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
TableCell2 cell = row.createCell(); cell.setStyleClass("payment_type"); cell.add(new Text(iwrb.getLocalizedString("payment_type", "Payment type"))); cell = row.createCell();
TableCell2 cell = row.createHeaderCell(); cell.setStyleClass("paymentType"); cell.setStyleClass("firstColumn"); cell.add(new Text(iwrb.getLocalizedString("payment_type", "Payment type"))); cell = row.createHeaderCell();
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell = row.createCell(); cell.setStyleClass("first_due_date"); cell.add(new Text(iwrb.getLocalizedString("first_due_date", "First due date")));
cell = row.createHeaderCell(); cell.setStyleClass("firstDueDate"); cell.setStyleClass("lastColumn"); cell.add(new Text(iwrb.getLocalizedString("first_due_date", "First due date")));
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
Collection coll = getBusiness(iwc).getPaymentItems("tempKT");
Collection coll = getBusiness(iwc).getPaymentItems("1", "tempKT");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
row.setStyleClass("odd");
row.setStyleClass("oddRow");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
row.setStyleClass("even");
row.setStyleClass("evenRow");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell.setStyleClass("payment_type");
cell.setStyleClass("paymentType"); cell.setStyleClass("firstColumn");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell.setStyleClass("first_due_date"); cell.add(new Text(p.getLastDate().getLocaleDate(iwc.getCurrentLocale())));
cell.setStyleClass("firstDueDate"); cell.add(new Text(p.getLastDate().getLocaleDate( iwc.getCurrentLocale())));
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
Collection items = getBusiness(iwc).getStatementItems("tempKR", p, fromStamp, toStamp);
Collection items = getBusiness(iwc).getStatementItems("1", "tempKR", p, fromStamp, toStamp);
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even");
row = group.createRow(); if (odd) { row.setStyleClass("oddRow"); } else { row.setStyleClass("evenRow");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
l.setStyleClass("date_form");
l.setStyleClass("dateForm");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
double sum = 0; row = group.createRow(); if (odd) { row.setStyleClass("odd"); } else { row.setStyleClass("even"); } odd = !odd; cell = row.createCell(); cell.setStyleClass("description"); cell.setStyleClass("first_column"); cell.setStyleClass("statement_header"); cell.add(new Text(iwrb.getLocalizedString("description",...
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell.setStyleClass("first_column");
cell.setStyleClass("firstColumn");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell.add(new Text(Double.toString(s.getAmount())));
if (s.getAmount() == 0.0d) { cell.add(new Text("-")); } else { cell.add(new Text(format.format(s.getAmount()) + ".-")); }
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
cell.setStyleClass("due_date"); cell.add(new Text(s.getLastDate().getLocaleDate(iwc.getCurrentLocale())));
cell.setStyleClass("dueDate"); cell.setStyleClass("lastColumn"); cell.add(new Text(s.getLastDate().getLocaleDate( iwc.getCurrentLocale())));
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...
row.setStyleClass("odd"); } else { row.setStyleClass("even");
row.setStyleClass("oddRow"); } else { row.setStyleClass("evenRow");
private Layer getStatement(IWContext iwc) throws RemoteException { Layer layer = new Layer(Layer.DIV); Form form = new Form(); form.setId("financial_statement"); layer.add(form); Table2 table = new Table2(); table.setCellpadding(3); table.setCellspacing(0); form.add(table); TableRowGroup group = table.creat...