001/* 002 * Copyright 2017 Anyware Services 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.ametys.plugins.extraction.component; 017 018import java.util.ArrayList; 019import java.util.List; 020 021/** 022 * Object representing an extraction join information 023 */ 024public class ExtractionClause 025{ 026 private String _expression; 027 private List<ExtractionClauseGroup> _groups = new ArrayList<>(); 028 029 /** 030 * Retrieves the join expression 031 * @return the expression 032 */ 033 public String getExpression() 034 { 035 return _expression; 036 } 037 038 /** 039 * Set the join expression 040 * @param expression the expression to set 041 */ 042 public void setExpression(String expression) 043 { 044 this._expression = expression; 045 } 046 047 /** 048 * Retrieves the join groups 049 * @return the groups 050 */ 051 public List<ExtractionClauseGroup> getGroups() 052 { 053 return _groups; 054 } 055 056 /** 057 * Add a group to the join 058 * @param group the group to add 059 */ 060 public void addGroup(ExtractionClauseGroup group) 061 { 062 this._groups.add(group); 063 } 064}