Java Doc for XMLElement.java in  » Workflow-Engines » JaWE » org » enhydra » shark » xpdl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » JaWE » org.enhydra.shark.xpdl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.shark.xpdl.XMLElement

All known Subclasses:   org.enhydra.shark.xpdl.XMLSimpleElement,  org.enhydra.shark.xpdl.XMLBaseForCollectionAndComplex,  org.enhydra.shark.xpdl.XMLAttribute,  org.enhydra.shark.xpdl.XMLComplexChoice,
XMLElement
abstract public class XMLElement implements Serializable,Cloneable(Code)
Base class for representing elements from XML schema.
author:
   Sasa Bojanic


Field Summary
protected  booleanisReadOnly
     Indicates if an element is read only.
protected transient  Listlisteners
    
protected transient  booleannotifyListeners
    
protected transient  booleannotifyMainListeners
    
protected  IntegeroriginalElementHashCode
    
protected  XMLElementparent
     Reference to parent object in DOM tree.
protected  Stringvalue
     Supposed to contain the value for XML element.

Constructor Summary
public  XMLElement(XMLElement parent, boolean isRequired)
     Creates a new instance of element: sets name to name of concrete class implementation of this abstract class, and parent and isRequired properties to the specified ones.
public  XMLElement(XMLElement parent, String name, boolean isRequired)
     Creates a new instance of element: sets name, parent isRequired properties to specified ones.

Method Summary
public  voidaddListener(XMLElementChangeListener listener)
    
public  Objectclone()
     Used to create exact copy of the element.
protected  XMLElementChangeInfocreateInfo(Object oldVal, Object newVal, List changedSubElements, int action)
    
public  booleanequals(Object e)
    
public  ListgetListeners()
    
protected  XMLElementgetMainElement()
    
public  IntegergetOriginalElementHashCode()
    
public  XMLElementgetParent()
     Gets the parent element in DOM tree.
public  booleanisEmpty()
     Indicates if element is empty.
protected  booleanisMainElement()
    
public  booleanisReadOnly()
     Returns the 'read only' status of element.
public  booleanisRequired()
     Returns if the element is required or not, which is defined by XPDL schema.
public  voidmakeAs(XMLElement el)
    
protected  voidnotifyListeners(XMLElementChangeInfo info)
    
protected  voidnotifyMainListeners(XMLElementChangeInfo info)
    
public  booleanremoveListener(XMLElementChangeListener listener)
    
public  voidsetNotifyListeners(boolean notify)
    
public  voidsetNotifyMainListeners(boolean notify)
    
public  voidsetParent(XMLElement el)
     Sets the parent element in DOM tree.
public  voidsetReadOnly(boolean ro)
     Sets 'read only' property of element to specified value.
public  voidsetValue(String v)
     Sets the element value.
public  StringtoName()
     Returns the name of element.
public  StringtoValue()
     Returns the element value.

Field Detail
isReadOnly
protected boolean isReadOnly(Code)
Indicates if an element is read only.



listeners
protected transient List listeners(Code)



notifyListeners
protected transient boolean notifyListeners(Code)



notifyMainListeners
protected transient boolean notifyMainListeners(Code)



originalElementHashCode
protected Integer originalElementHashCode(Code)



parent
protected XMLElement parent(Code)
Reference to parent object in DOM tree.



value
protected String value(Code)
Supposed to contain the value for XML element. This is true for simple elements and attributes, more complex elements uses it as they need.




Constructor Detail
XMLElement
public XMLElement(XMLElement parent, boolean isRequired)(Code)
Creates a new instance of element: sets name to name of concrete class implementation of this abstract class, and parent and isRequired properties to the specified ones.

It also sets the value of this element to an empty String.




XMLElement
public XMLElement(XMLElement parent, String name, boolean isRequired)(Code)
Creates a new instance of element: sets name, parent isRequired properties to specified ones.

It also sets the value of this element to an empty String.





Method Detail
addListener
public void addListener(XMLElementChangeListener listener)(Code)



clone
public Object clone()(Code)
Used to create exact copy of the element.



createInfo
protected XMLElementChangeInfo createInfo(Object oldVal, Object newVal, List changedSubElements, int action)(Code)



equals
public boolean equals(Object e)(Code)



getListeners
public List getListeners()(Code)



getMainElement
protected XMLElement getMainElement()(Code)



getOriginalElementHashCode
public Integer getOriginalElementHashCode()(Code)



getParent
public XMLElement getParent()(Code)
Gets the parent element in DOM tree.



isEmpty
public boolean isEmpty()(Code)
Indicates if element is empty.



isMainElement
protected boolean isMainElement()(Code)



isReadOnly
public boolean isReadOnly()(Code)
Returns the 'read only' status of element.

If element is read only, and one wants to change its property, the RuntimeException will be thrown.




isRequired
public boolean isRequired()(Code)
Returns if the element is required or not, which is defined by XPDL schema. If element is required, its value must be defined (In the case of complex elements, all the required subelements must be defined). Otherwise, the whole Package won't be valid by the XPDL schema.



makeAs
public void makeAs(XMLElement el)(Code)



notifyListeners
protected void notifyListeners(XMLElementChangeInfo info)(Code)



notifyMainListeners
protected void notifyMainListeners(XMLElementChangeInfo info)(Code)



removeListener
public boolean removeListener(XMLElementChangeListener listener)(Code)



setNotifyListeners
public void setNotifyListeners(boolean notify)(Code)



setNotifyMainListeners
public void setNotifyMainListeners(boolean notify)(Code)



setParent
public void setParent(XMLElement el)(Code)
Sets the parent element in DOM tree.

This method is used when collection, complex element or complex choice is cloned, to set new parent element of the cloned sub-elements.




setReadOnly
public void setReadOnly(boolean ro)(Code)
Sets 'read only' property of element to specified value. This enables/disables editing of the element value for the simple elements and attributes, or changes to attributes and elements of complex objects and collections.

If element is read only, and one wants to change its property, the RuntimeException will be thrown.




setValue
public void setValue(String v)(Code)
Sets the element value. If it is simple element or an non-choice attribute, this sets the actual value of the element. If it is choice attribute, it sets the choosen value. Only some complex elements (Condition, SchemaType, and ExtendedAttribute) allows you to use this method, while others will throw RuntimeException.



toName
public String toName()(Code)
Returns the name of element.



toValue
public String toValue()(Code)
Returns the element value.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.