/* * Copyright 2015 JBoss, by Red Hat, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.uberfire.ext.wires.bayesian.network.parser.client.parser; import java.io.Serializable; import java.util.List; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamImplicit; import org.jboss.errai.common.client.api.annotations.Portable; @XStreamAlias("PROBABILITY") @Portable public class Probability implements Serializable { private static final long serialVersionUID = 329348179543890266L; @XStreamAlias("FOR") private String for_; @XStreamImplicit(itemFieldName = "GIVEN") private List<String> given; @XStreamAlias("TABLE") private String table; public String getFor_() { return for_; } public void setFor_(String for_) { this.for_ = for_; } public List<String> getGiven() { return given; } public void setGiven(List<String> given) { this.given = given; } public String getTable() { return table; } public void setTable(String table) { this.table = table; } }