01: /*
02: * $Id: StandardAttributes.java,v 1.4 2004/12/09 12:34:34 kowap Exp $
03: *
04: * Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
05: * Berne University of Applied Sciences
06: * School of Engineering and Information Technology
07: * All rights reserved.
08: */
09: 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.4 $, $Date: 2004/12/09 12:34:34 $
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
38: .getValue(SUPPRESS_JOIN_FAILURE);
39: }
40:
41: /**
42: * Get the joinCondition attribute value.
43: *
44: * @return Returns the joinCondition.
45: */
46: public String getJoinCondition() {
47: return joinCondition;
48: }
49:
50: /**
51: * Get the name attribute value.
52: *
53: * @return Returns the name.
54: */
55: public String getName() {
56: return name;
57: }
58:
59: /**
60: * Get the suppressJoinFailure attributes value.
61: *
62: * @return Returns the suppressJoinFailure.
63: */
64: public String getSuppressJoinFailure() {
65: return suppressJoinFailure;
66: }
67: }
|