View Javadoc

1   /*
2    * $Id: StandardAttributes.java,v 1.1 2004/12/15 14:18:10 patforna Exp $
3    *
4    * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
5    * Berne University of Applied Sciences
6    * School of Engineering and Information Technology
7    * All rights reserved.
8    */
9   package bexee.model;
10  
11  import org.xml.sax.Attributes;
12  
13  /***
14   * This class represents BPEL element standard attributes.
15   * 
16   * @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:10 $
17   * @author Patric Fornasier
18   * @author Pawel Kowalski
19   */
20  public class StandardAttributes implements AttributeNames {
21  
22      private String name;
23  
24      private String joinCondition;
25  
26      private String suppressJoinFailure;
27  
28      /***
29       * Create new instance of StandardAttributes with the given
30       * <code>org.xml.sax.Attributes</code>.
31       * 
32       * @param attributes
33       */
34      public StandardAttributes(Attributes attributes) {
35          name = attributes.getValue(NAME);
36          joinCondition = attributes.getValue(JOIN_CONDITION);
37          suppressJoinFailure = attributes.getValue(SUPPRESS_JOIN_FAILURE);
38      }
39  
40      /***
41       * Get the joinCondition attribute value.
42       * 
43       * @return Returns the joinCondition.
44       */
45      public String getJoinCondition() {
46          return joinCondition;
47      }
48  
49      /***
50       * Get the name attribute value.
51       * 
52       * @return Returns the name.
53       */
54      public String getName() {
55          return name;
56      }
57  
58      /***
59       * Get the suppressJoinFailure attributes value.
60       * 
61       * @return Returns the suppressJoinFailure.
62       */
63      public String getSuppressJoinFailure() {
64          return suppressJoinFailure;
65      }
66  }