01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: * $Id: IContentElement.java 6044 2007-03-18 03:55:52Z mpreston $
23: *
24: */
25: package com.bostechcorp.cbesb.common.mdl;
26:
27: import javax.xml.namespace.QName;
28:
29: /**
30: * This interface extends ContentNode and represents a child element (rather
31: * than a child group). Some of the functionality provided:
32: * <p>Get/Set ElementDefinition - The definition of the child element. This could
33: * be locally defined or a reference to a global element definition.
34: * <p>Get/Set FormatChildAttributes - These are the child level format attributes.
35: *
36: */
37: public interface IContentElement extends IContentNode {
38:
39: /**
40: * Get ElementDefinition - The definition of the child element.
41: *
42: * @return IElementDefinition
43: */
44: public IElementDefinition getElementDefinition();
45:
46: /**
47: * Set ElementDefinition - The definition of the child element.
48: *
49: * @param elementDefinition IElementDefinition
50: */
51: public void setElementDefinition(
52: IElementDefinition elementDefinition);
53:
54: /**
55: * Get FormatChildAttributes - These are the child level format attributes.
56: *
57: * @return IFormatChildAttributes
58: */
59: public IFormatChildAttributes getFormatChildAttributes();
60:
61: /**
62: * Set FormatChildAttributes - These are the child level format attributes.
63: *
64: * @param attributes IFormatChildAttributes
65: */
66: public void setFormatChildAttributes(
67: IFormatChildAttributes attributes);
68:
69: /**
70: * Get ref name.
71: *
72: * @return String
73: */
74: public QName getRef();
75:
76: /**
77: * Set ref name.
78: *
79: * @param ref String
80: */
81: public void setRef(QName ref);
82:
83: public QName getElementDef();
84:
85: public void setElementDef(QName elementDef);
86:
87: public String getElementDefName();
88:
89: public void setElementDefName(String elementDefName);
90:
91: public IElementDefinition getResolvedElementDef();
92: }
|