Java Doc for PropertyName.java in  » Content-Management-System » harmonise » com » ibm » webdav » 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 » Content Management System » harmonise » com.ibm.webdav 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.ibm.webdav.PropertyName

PropertyName
public class PropertyName (Code)
This class represents the universal name for a property.
author:
   Jason Crawford <ccjason@us.ibm.com>


Field Summary
protected  Stringlocal
    
protected  Stringns
    
final public static  PropertyNamepnContenttype
    
final public static  PropertyNamepnCreationdate
    
final public static  PropertyNamepnGetcontentlength
    
final public static  PropertyNamepnGetlastmodified
    
final public static  PropertyNamepnLockdiscovery
    
final public static  PropertyNamepnResourcetype
    
final public static  PropertyNamepnSupportedlock
    

Constructor Summary
public  PropertyName(org.w3c.dom.Element tag)
     PropertyName constructor.
public  PropertyName(String tag)
     PropertyName constructor.
public  PropertyName(String namespace, String tag)
     PropertyName constructor.
Parameters:
  tag - is the local property name.

Method Summary
public  StringasExpandedString()
     Returns a combined namespace+local string.
public static  PropertyNamecreatePropertyNameQuietly(String propname)
     This factory takes a propertyname string.
public  booleanequals(Object obj)
     Compares two objects for equality.
public  StringgetLocal()
     Returns a the local portion of a property name.
public  StringgetNamespace()
     Returns a the namespace of the PropertyName.
public  inthashCode()
     Generates a hash code for the receiver.
public  StringtoString()
     Returns a consise human readable string describing the property name.

Field Detail
local
protected String local(Code)



ns
protected String ns(Code)



pnContenttype
final public static PropertyName pnContenttype(Code)



pnCreationdate
final public static PropertyName pnCreationdate(Code)



pnGetcontentlength
final public static PropertyName pnGetcontentlength(Code)



pnGetlastmodified
final public static PropertyName pnGetlastmodified(Code)



pnLockdiscovery
final public static PropertyName pnLockdiscovery(Code)



pnResourcetype
final public static PropertyName pnResourcetype(Code)



pnSupportedlock
final public static PropertyName pnSupportedlock(Code)




Constructor Detail
PropertyName
public PropertyName(org.w3c.dom.Element tag)(Code)
PropertyName constructor.
Parameters:
  tag - a tag whose name will be used as the property name ofconstructed PropertyName.



PropertyName
public PropertyName(String tag) throws InvalidPropertyNameException(Code)
PropertyName constructor. This constructor will only work for property names in the "DAV:" namespace and the tag parameter must begin with "DAV:".
Parameters:
  tag - the property name. ie. DAV:resourcetype



PropertyName
public PropertyName(String namespace, String tag) throws InvalidPropertyNameException(Code)
PropertyName constructor.
Parameters:
  tag - is the local property name. ie "resourcetype"
Parameters:
  namespace - is the namespace string. ie "DAV:"




Method Detail
asExpandedString
public String asExpandedString()(Code)
Returns a combined namespace+local string. java.lang.String



createPropertyNameQuietly
public static PropertyName createPropertyNameQuietly(String propname)(Code)
This factory takes a propertyname string. Unlike the constructor with the same argument signature, this method will throw a runtime exception in situations where the contructor would throw an InvalidPropertyNameException. This is important because runtime exceptions don't have to be declared. This can be convenient if a caller knows that their provided property name is correct (by the definition of the PropertyName(String) constructor) and don't want to sprinkle exception declarations all over their code... or add try/catch blocks... when they know an InvalidPropertyNameException will never be thrown. com.ibm.webdav.PropertyName
Parameters:
  propname - java.lang.String - See the documentationfor the PropertyName( String) constructor for info.



equals
public boolean equals(Object obj)(Code)
Compares two objects for equality. Returns a boolean that indicates whether this object is equivalent to the specified object. This method is used when an object is stored in a hashtable.

In the case of this class, if the contatenated ns+local string names are equal, then the PropertyNames are equal.

It should be noted that this method can take a String as a parameter and match on it. That equality relationship is not communative though since the String.equals(Object) method will never return true if passed a PropertyName.
Parameters:
  obj - the Object to compare with true if these Objects are equal; false otherwise.
See Also:   java.util.Hashtable




getLocal
public String getLocal()(Code)
Returns a the local portion of a property name. For example it would return "resourcetype" if the PropertyName was representing a property name for DAV:resourcetype. a string representation of the local property namewithout any prefix or namespace.



getNamespace
public String getNamespace()(Code)
Returns a the namespace of the PropertyName. a string representation of the namespace of a property name.For example "DAV:".



hashCode
public int hashCode()(Code)
Generates a hash code for the receiver. This method is supported primarily for hash tables, such as those provided in java.util. an integer hash code for the receiver
See Also:   java.util.Hashtable



toString
public String toString()(Code)
Returns a consise human readable string describing the property name. java.lang.String



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.