@Test public void fullSelector() { final Document document = newRecord(A_CONTROL_FIELD_NAME, A_CONTROL_FIELD_VALUE); final ControlFieldExpression expression = new ControlFieldExpression(A_CONTROL_FIELD_NAME); expression.xpath = new OXPath(); assertEquals(A_CONTROL_FIELD_VALUE, expression.evaluate(document)); }
@Override public String evaluate(final Document target) { final String result = currentState.evaluate(target); return result != null && result.trim().length() > 0 ? result : null; }
ControlFieldExpression implements Expression<String, Document> { @Override public String evaluate(final Document target) { final String result = currentState.evaluate(target); return result != null && result.trim().length() > 0 ? result : null; } }
ControlFieldExpression implements Expression<String, Document> { @Override public String evaluate(final Document target) { final String result = currentState.evaluate(target); return result != null && result.trim().length() > 0 ? result : null; } ControlFieldExpression(final String specs); }
ControlFieldExpression implements Expression<String, Document> { @Override public String evaluate(final Document target) { final String result = currentState.evaluate(target); return result != null && result.trim().length() > 0 ? result : null; } ControlFieldExpression(final String specs); @Override String evaluate(final Document target); @Override String specs(); @Override String toString(); }
ControlFieldExpression implements Expression<String, Document> { @Override public String evaluate(final Document target) { final String result = currentState.evaluate(target); return result != null && result.trim().length() > 0 ? result : null; } ControlFieldExpression(final String specs); @Override String evaluate(final Document target); @Override String specs(); @Override String toString();  }