Java Doc for ServiceTag.java in  » IDE-Netbeans » reglib » com » sun » servicetag » 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 » IDE Netbeans » reglib » com.sun.servicetag 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.servicetag.ServiceTag

ServiceTag
public class ServiceTag (Code)
A service tag is an XML-based data structure that identifies a product or a component on a system. The service tag schema is defined by the Service Tags Technology. The location of the DTD file is platform dependent. On Solaris, see /usr/share/lib/xml/dtd/servicetag.dtd.

A valid ServiceTag instance must comply to the service tag schema and contain the following fields:

The instance_urn can be specified when a ServiceTag object is created, or it can be generated when it is added to a RegistrationData object, or Registrysystem service tag registry . The installer_uid and timestamp are set when a ServiceTag object is added to a RegistrationData object, or Registrysystem service tag registry .
See Also:    Service Tags FAQ



Constructor Summary
 ServiceTag(String instanceURN, String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source, int installerUID, Date timestamp)
    

Method Summary
public  booleanequals(Object obj)
     Compares this service tag to the specified object.
public static  StringgenerateInstanceURN()
    
public  StringgetContainer()
     Returns the container of the product.
public  intgetInstallerUID()
     Returns the UID.
public  StringgetInstanceURN()
     Returns the uniform resource name of this service tag instance.
public static  ServiceTaggetJavaServiceTag(String source)
     Returns the ServiceTag instance for the running Java platform.
public  StringgetPlatformArch()
     Returns the platform architecture on which the product is running on.
public  StringgetProductDefinedInstanceID()
     Returns the identifier defined for this product instance. the identifier defined for this product instance.
public  StringgetProductName()
     Returns the name of the product. the product name.
public  StringgetProductParent()
     Returns the name of the product's parent. the product's parent name.
public  StringgetProductParentURN()
     Returns the uniform resource name of the product's parent.
public  StringgetProductURN()
     Returns the uniform resource name of the product. the product URN.
public  StringgetProductVendor()
     Returns the vendor of the product.
public  StringgetProductVersion()
     Returns the version of the product. the product version.
public  StringgetSource()
     Returns the source of this service tag.
public  DategetTimestamp()
     Returns the timestamp.
public  inthashCode()
     Returns the hash code value for this service tag.
public static  ServiceTagnewInstance(String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source)
     Creates a service tag object with no instance_urn.
Parameters:
  productName - the name of the product.
Parameters:
  productVersion - the version of the product.
Parameters:
  productURN - the uniform resource name of the product
Parameters:
  productParent - the name of the product's parent.
Parameters:
  productParentURN - the uniform resource name of the product's parent.
Parameters:
  productDefinedInstanceID - the instance identifier.
Parameters:
  productVendor - the vendor of the product.
Parameters:
  platformArch - the operating system architecture.
Parameters:
  container - the container of the product.
Parameters:
  source - the source of the product.
throws:
  IllegalArgumentException - if any value of the input fieldsdoes not conform to the service tag XML schema.
public static  ServiceTagnewInstance(String instanceURN, String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source)
     Creates a service tag object with a specified instance_urn.
Parameters:
  instanceURN - the uniform resource name of this instance.
Parameters:
  productName - the name of the product.
Parameters:
  productVersion - the version of the product.
Parameters:
  productURN - the uniform resource name of the product
Parameters:
  productParent - the name of the product's parent.
Parameters:
  productParentURN - the uniform resource name of the product's parent.
Parameters:
  productDefinedInstanceID - the instance identifier.
Parameters:
  productVendor - the vendor of the product.
Parameters:
  platformArch - the operating system architecture.
Parameters:
  container - the container of the product.
Parameters:
  source - the source of the product.
throws:
  IllegalArgumentException - if any value of the input fields does not conform to the service tag XML schema.
static  ServiceTagnewInstanceWithUrnTimestamp(ServiceTag st)
    
 voidsetProductDefinedInstanceID(String productDefinedInstanceID)
    
public  StringtoString()
     Returns the string representation of this service tag.


Constructor Detail
ServiceTag
ServiceTag(String instanceURN, String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source, int installerUID, Date timestamp)(Code)




Method Detail
equals
public boolean equals(Object obj)(Code)
Compares this service tag to the specified object. The result is true if and only if the argument is not null and is a ServiceTag object whose instance_urn is the same as the instance_urn of this service tag. true if this service tag is the same as the specified object.



generateInstanceURN
public static String generateInstanceURN()(Code)
Returns a uniform resource name (URN) in this format:
"urn:st:<32-char java.util.UUID uuid >"
a URN.



getContainer
public String getContainer()(Code)
Returns the container of the product. the container of the product.



getInstallerUID
public int getInstallerUID()(Code)
Returns the UID. The UID is set when this service tag is added to or updated in the system service tag registry. This is platform dependent whose default value is -1 . When this service tag is added to a RegistrationData , the UID is not set. the UID of whom this service tagis added to or updated in the system service tag registry,or -1 .



getInstanceURN
public String getInstanceURN()(Code)
Returns the uniform resource name of this service tag instance. the instance_urn of this service tag.



getJavaServiceTag
public static ServiceTag getJavaServiceTag(String source) throws IOException(Code)
Returns the ServiceTag instance for the running Java platform. The ServiceTag.setSource source field of the ServiceTag will be set to the given source . This method will return null if there is no service tag for the running Java platform.

This method is designed for Sun software that bundles the JDK or the JRE to use. It is recommended that the source string contains information about the bundling software such as the name and the version of the software bundle, for example,

NetBeans IDE 6.0 with JDK 6 Update 5 Bundle
in a NetBeans/JDK bundle.

At the first time to call this method the application is required to have the write permission to the installed directory of this running JDK or JRE instance.
Parameters:
  source - the source that bundles the JDK or the JRE. a ServiceTag object for the Java platform,or null if not supported.
throws:
  IOException - if an error occurs in this operation.




getPlatformArch
public String getPlatformArch()(Code)
Returns the platform architecture on which the product is running on. the platform architecture on which the product is running on.



getProductDefinedInstanceID
public String getProductDefinedInstanceID()(Code)
Returns the identifier defined for this product instance. the identifier defined for this product instance.



getProductName
public String getProductName()(Code)
Returns the name of the product. the product name.



getProductParent
public String getProductParent()(Code)
Returns the name of the product's parent. the product's parent name.



getProductParentURN
public String getProductParentURN()(Code)
Returns the uniform resource name of the product's parent. the product's parent URN.



getProductURN
public String getProductURN()(Code)
Returns the uniform resource name of the product. the product URN.



getProductVendor
public String getProductVendor()(Code)
Returns the vendor of the product. the product vendor.



getProductVersion
public String getProductVersion()(Code)
Returns the version of the product. the product version.



getSource
public String getSource()(Code)
Returns the source of this service tag. source of this service tag.



getTimestamp
public Date getTimestamp()(Code)
Returns the timestamp. This timestamp is set when this service tag is added to or updated in a RegistrationData object or the system service tag registry. This method may return null . timestamp when this service tag is added to or updated in a RegistrationData object or the system service tag registry, or null .



hashCode
public int hashCode()(Code)
Returns the hash code value for this service tag. the hash code value for this service tag.



newInstance
public static ServiceTag newInstance(String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source)(Code)
Creates a service tag object with no instance_urn.
Parameters:
  productName - the name of the product.
Parameters:
  productVersion - the version of the product.
Parameters:
  productURN - the uniform resource name of the product
Parameters:
  productParent - the name of the product's parent.
Parameters:
  productParentURN - the uniform resource name of the product's parent.
Parameters:
  productDefinedInstanceID - the instance identifier.
Parameters:
  productVendor - the vendor of the product.
Parameters:
  platformArch - the operating system architecture.
Parameters:
  container - the container of the product.
Parameters:
  source - the source of the product.
throws:
  IllegalArgumentException - if any value of the input fieldsdoes not conform to the service tag XML schema.



newInstance
public static ServiceTag newInstance(String instanceURN, String productName, String productVersion, String productURN, String productParent, String productParentURN, String productDefinedInstanceID, String productVendor, String platformArch, String container, String source)(Code)
Creates a service tag object with a specified instance_urn.
Parameters:
  instanceURN - the uniform resource name of this instance.
Parameters:
  productName - the name of the product.
Parameters:
  productVersion - the version of the product.
Parameters:
  productURN - the uniform resource name of the product
Parameters:
  productParent - the name of the product's parent.
Parameters:
  productParentURN - the uniform resource name of the product's parent.
Parameters:
  productDefinedInstanceID - the instance identifier.
Parameters:
  productVendor - the vendor of the product.
Parameters:
  platformArch - the operating system architecture.
Parameters:
  container - the container of the product.
Parameters:
  source - the source of the product.
throws:
  IllegalArgumentException - if any value of the input fields does not conform to the service tag XML schema.



newInstanceWithUrnTimestamp
static ServiceTag newInstanceWithUrnTimestamp(ServiceTag st)(Code)



setProductDefinedInstanceID
void setProductDefinedInstanceID(String productDefinedInstanceID)(Code)



toString
public String toString()(Code)
Returns the string representation of this service tag. The format is implementation specific. the string representation of this service tag.



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.