Java Doc for AbstractItem.java in  » Ajax » zk » org » zkoss » idom » impl » 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 » Ajax » zk » org.zkoss.idom.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.zkoss.idom.impl.AbstractItem

All known Subclasses:   org.zkoss.idom.impl.AbstractGroup,  org.zkoss.idom.ProcessingInstruction,  org.zkoss.idom.DocType,  org.zkoss.idom.impl.AbstractTextual,  org.zkoss.idom.Attribute,
AbstractItem
abstract public class AbstractItem implements Item,Node,Serializable,Cloneable(Code)
A semi-implemented item for leaf vertices. A leaf item is a item without any children. For cores having child cores, use Group.

Important methods that the deriving might want to override.

Item.getName
It must be overrided to provide a local name.
Item.setName
Overrid it if it allows to change the name. Default: throws an exception.
Item.getText
Override it if it has a text representation. Default: returns null.
Item.setText
Overrid it if it allows to change the text. Default: throws an exception.
Node.getNodeType
It must be overrided to provide the type.
Item.clone
Override it if any other members to handle specially. Note: by definition, we do deep clone only.
Object.toString
Override if you want a representation other than XMLOutputter does.

author:
   tomyeh
See Also:   org.zkoss.idom.Item


Field Summary
protected transient  boolean_modified
     The modification flag.

Constructor Summary
protected  AbstractItem()
     Constructor.

Method Summary
public  NodeappendChild(Node newChild)
    
final protected  voidcheckWritable()
     Checks whether this item is writable (ie, isReady).
public  voidclearModified(boolean includingDescendant)
    
public  Itemclone(boolean preserveModified)
    
public  Objectclone()
     Clones this object (a deep cloning not including contents contained in Textual nodes).
final public  NodecloneNode(boolean deep)
    
public  shortcompareDocumentPosition(Node other)
    
public  Itemdetach()
    
final public  booleanequals(Object o)
     Overriding this method is prohibited.
public  NamedNodeMapgetAttributes()
    
public  StringgetBaseURI()
    
public  NodeListgetChildNodes()
    
public  DocumentgetDocument()
    
public  ObjectgetFeature(String feature, String version)
    
public  NodegetFirstChild()
    
public  NodegetLastChild()
    
public  StringgetLocalName()
    
final public  LocatorgetLocator()
    
public  StringgetNamespaceURI()
    
final public  NodegetNextSibling()
    
public  StringgetNodeName()
    
public  StringgetNodeValue()
    
public  org.w3c.dom.DocumentgetOwnerDocument()
    
final public  GroupgetParent()
    
final public  NodegetParentNode()
    
public  StringgetPrefix()
    
final public  NodegetPreviousSibling()
    
public  StringgetText()
    
public  StringgetTextContent()
    
public  ObjectgetUserData(String key)
    
public  booleanhasAttributes()
    
public  booleanhasChildNodes()
    
final public  inthashCode()
     Overriding this method is prohibited.
public  NodeinsertBefore(Node newChild, Node refChild)
    
public  booleanisDefaultNamespace(String namespaceURI)
    
public  booleanisEqualNode(Node arg)
    
public  booleanisModified()
    
public  booleanisReadonly()
    
public  booleanisSameNode(Node other)
    
final public  booleanisSupported(String feature, String version)
    
public  StringlookupNamespaceURI(String prefix)
    
public  StringlookupPrefix(String namespaceURI)
    
protected static  booleanmatch(Namespaceable vtx, String namespace, String name, Pattern ptn, int mode)
     Tests whether a namespaceable item matches the criteria.
final public  voidnormalize()
    
public  NoderemoveChild(Node oldChild)
    
public  NodereplaceChild(Node newChild, Node oldChild)
    
final public  voidsetLocator(Locator loc)
    
public  voidsetModified()
    
public  voidsetName(String name)
    
public  voidsetNodeValue(String nodeValue)
    
public  voidsetParent(Group parent)
    
public  voidsetPrefix(String prefix)
    
public  voidsetReadonly(boolean readonly)
     Sets the read-only flag of this item.
public  voidsetText(String text)
    
public  voidsetTextContent(String textContent)
    
public  ObjectsetUserData(String key, Object data, UserDataHandler handler)
    

Field Detail
_modified
protected transient boolean _modified(Code)
The modification flag.




Constructor Detail
AbstractItem
protected AbstractItem()(Code)
Constructor.




Method Detail
appendChild
public Node appendChild(Node newChild)(Code)



checkWritable
final protected void checkWritable()(Code)
Checks whether this item is writable (ie, isReady).
exception:
  DOMException - with NO_MODIFICATION_ALLOWED_ERR if not writable



clearModified
public void clearModified(boolean includingDescendant)(Code)



clone
public Item clone(boolean preserveModified)(Code)



clone
public Object clone()(Code)
Clones this object (a deep cloning not including contents contained in Textual nodes). Note: after cloning, the read-only flag always becomes false, and the parent becomes null (i.e., detached).



cloneNode
final public Node cloneNode(boolean deep)(Code)



compareDocumentPosition
public short compareDocumentPosition(Node other) throws DOMException(Code)



detach
public Item detach()(Code)



equals
final public boolean equals(Object o)(Code)
Overriding this method is prohibited.



getAttributes
public NamedNodeMap getAttributes()(Code)



getBaseURI
public String getBaseURI()(Code)



getChildNodes
public NodeList getChildNodes()(Code)



getDocument
public Document getDocument()(Code)



getFeature
public Object getFeature(String feature, String version)(Code)



getFirstChild
public Node getFirstChild()(Code)



getLastChild
public Node getLastChild()(Code)



getLocalName
public String getLocalName()(Code)



getLocator
final public Locator getLocator()(Code)



getNamespaceURI
public String getNamespaceURI()(Code)



getNextSibling
final public Node getNextSibling()(Code)



getNodeName
public String getNodeName()(Code)



getNodeValue
public String getNodeValue()(Code)



getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()(Code)



getParent
final public Group getParent()(Code)



getParentNode
final public Node getParentNode()(Code)



getPrefix
public String getPrefix()(Code)



getPreviousSibling
final public Node getPreviousSibling()(Code)



getText
public String getText()(Code)



getTextContent
public String getTextContent() throws DOMException(Code)



getUserData
public Object getUserData(String key)(Code)



hasAttributes
public boolean hasAttributes()(Code)



hasChildNodes
public boolean hasChildNodes()(Code)



hashCode
final public int hashCode()(Code)
Overriding this method is prohibited.



insertBefore
public Node insertBefore(Node newChild, Node refChild)(Code)



isDefaultNamespace
public boolean isDefaultNamespace(String namespaceURI)(Code)



isEqualNode
public boolean isEqualNode(Node arg)(Code)



isModified
public boolean isModified()(Code)



isReadonly
public boolean isReadonly()(Code)



isSameNode
public boolean isSameNode(Node other)(Code)



isSupported
final public boolean isSupported(String feature, String version)(Code)



lookupNamespaceURI
public String lookupNamespaceURI(String prefix)(Code)



lookupPrefix
public String lookupPrefix(String namespaceURI)(Code)



match
protected static boolean match(Namespaceable vtx, String namespace, String name, Pattern ptn, int mode)(Code)
Tests whether a namespaceable item matches the criteria. If mode don't contain FIND_BY_REGEX, ptn is ignored.



normalize
final public void normalize()(Code)



removeChild
public Node removeChild(Node oldChild)(Code)



replaceChild
public Node replaceChild(Node newChild, Node oldChild)(Code)



setLocator
final public void setLocator(Locator loc)(Code)



setModified
public void setModified()(Code)



setName
public void setName(String name)(Code)



setNodeValue
public void setNodeValue(String nodeValue)(Code)



setParent
public void setParent(Group parent)(Code)



setPrefix
public void setPrefix(String prefix)(Code)



setReadonly
public void setReadonly(boolean readonly)(Code)
Sets the read-only flag of this item. It causes this item and all its descendants read-only, see AbstractItem.isReadonly .

Deriving class might restrict more conditions here.




setText
public void setText(String text)(Code)



setTextContent
public void setTextContent(String textContent) throws DOMException(Code)



setUserData
public Object setUserData(String key, Object data, UserDataHandler handler)(Code)



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.