Java Doc for Policy.java in  » 6.0-JDK-Modules-com.sun » wsit » com » sun » xml » ws » policy » 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 » 6.0 JDK Modules com.sun » wsit » com.sun.xml.ws.policy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.ws.policy.Policy

All known Subclasses:   com.sun.xml.ws.policy.NestedPolicy,
Policy
public class Policy implements Iterable<AssertionSet>(Code)
A policy represents normalized policy as a wrapper of available policy alternatives represented by child AssertionSet AssertionSets .
author:
   Fabian Ritzmann, Marek Potociar



Constructor Summary
 Policy(String toStringName, Collection<AssertionSet> sets)
     Constructor that should be overridden by child implementation.
 Policy(String toStringName, String name, String policyId, Collection<AssertionSet> sets)
     Constructor that should be overridden by child implementation.

Method Summary
public  booleancontains(String namespaceUri)
    
public  booleancontains(QName assertionName)
     Determines if the policy instance contains the assertion with the name specified in its vocabulary.
Parameters:
  assertionName - the name of the assertion to be tested.
public static  PolicycreateEmptyPolicy()
     The factory method creates an immutable policy instance which represents a 'anything allowed' policy expression.
public static  PolicycreateEmptyPolicy(String name, String policyId)
     The factory method creates an immutable policy instance which represents a 'anything allowed' policy expression.
Parameters:
  name - global URI of the policy.
public static  PolicycreateNullPolicy()
     The factory method creates an immutable policy instance which represents a 'nothing allowed' policy expression.
public static  PolicycreateNullPolicy(String name, String policyId)
     The factory method creates an immutable policy instance which represents a 'nothing allowed' policy expression.
Parameters:
  name - global URI of the policy.
public static  PolicycreatePolicy(Collection<AssertionSet> sets)
     The factory method creates an immutable policy instance which represents a policy expression with alternatives specified by sets input parameter.
public static  PolicycreatePolicy(String name, String policyId, Collection<AssertionSet> sets)
     The factory method creates an immutable policy instance which represents a policy expression with alternatives specified by sets input parameter.
public  booleanequals(Object obj)
     An Object.equals(Object obj) method override.
 Collection<AssertionSet>getContent()
    
public  StringgetId()
     Returns the policy identifier that serves as a local relative policy URI. policy identifier - a local relative policy URI.
public  StringgetIdOrName()
     Returns the policy ID or if that is null the policy name.
public  StringgetName()
     Returns the policy name that serves as a global policy URI. policy name - a global policy URI.
public  intgetNumberOfAssertionSets()
     Method returns how many policy alternatives this policy instance contains.
public  Collection<QName>getVocabulary()
     Retrieves the vocabulary of this policy expression.
public  inthashCode()
     An Object.hashCode() method override.
public  booleanisEmpty()
    
public  booleanisNull()
    
public  Iterator<AssertionSet>iterator()
     A policy usually contains one or more assertion sets.
public  StringtoString()
     An Object.toString() method override.
 StringBuffertoString(int indentLevel, StringBuffer buffer)
     A helper method that appends indented string representation of this instance to the input string buffer.


Constructor Detail
Policy
Policy(String toStringName, Collection<AssertionSet> sets)(Code)
Constructor that should be overridden by child implementation. The constructor allows for easy toString() output customization.
Parameters:
  toStringName - a general name of the object (such as 'policy' or 'nested policy') that will be used in thetoString() method to identify the object.
Parameters:
  sets - represents the collection of policy alternatives of the policy object created. During the creation ofthe new policy object, the content of the alternatives collection is copied into an internal policy object structure,thus any subsequent operations on the collection will have no impact on the newly constructed policy object. Thecollection may be null or empty. In such case a 'NULL' policy object is constructed.



Policy
Policy(String toStringName, String name, String policyId, Collection<AssertionSet> sets)(Code)
Constructor that should be overridden by child implementation. The constructor allows for easy toString() output customization.
Parameters:
  toStringName - a general name of the object (such as 'policy' or 'nested policy') that will be used in thetoString() method to identify the object.
Parameters:
  name - global URI of the policy. May be null .
Parameters:
  policyId - local URI of the policy. May be null .
Parameters:
  sets - represents the collection of policy alternatives of the policy object created. During the creation ofthe new policy object, the content of the alternatives collection is copied into an internal policy object structure,thus any subsequent operations on the collection will have no impact on the newly constructed policy object. Thecollection may be null or empty. In such case a 'NULL' policy object is constructed.




Method Detail
contains
public boolean contains(String namespaceUri)(Code)
Returns true if the policy contains the assertion names with specified namespace in its vocabulary
Parameters:
  namespaceUri - the assertion namespace URI (identifying assertion domain) true , if an assertion with the given name could be found in the policy vocabulary false otherwise.



contains
public boolean contains(QName assertionName)(Code)
Determines if the policy instance contains the assertion with the name specified in its vocabulary.
Parameters:
  assertionName - the name of the assertion to be tested. true if the assertion with the specified name is part of the policy instance's vocabulary, false otherwise.



createEmptyPolicy
public static Policy createEmptyPolicy()(Code)
The factory method creates an immutable policy instance which represents a 'anything allowed' policy expression. policy instance which represents a 'anything allowed' (empty policy alternative with no plicyassertions prescribed).



createEmptyPolicy
public static Policy createEmptyPolicy(String name, String policyId)(Code)
The factory method creates an immutable policy instance which represents a 'anything allowed' policy expression.
Parameters:
  name - global URI of the policy. May be null .
Parameters:
  policyId - local URI of the policy. May be null . policy instance which represents a 'anything allowed' (empty policy alternative with no plicyassertions prescribed).



createNullPolicy
public static Policy createNullPolicy()(Code)
The factory method creates an immutable policy instance which represents a 'nothing allowed' policy expression. policy instance which represents a 'nothing allowed' (no policy alternatives).



createNullPolicy
public static Policy createNullPolicy(String name, String policyId)(Code)
The factory method creates an immutable policy instance which represents a 'nothing allowed' policy expression.
Parameters:
  name - global URI of the policy. May be null .
Parameters:
  policyId - local URI of the policy. May be null . policy instance which represents a 'nothing allowed' (no policy alternatives).



createPolicy
public static Policy createPolicy(Collection<AssertionSet> sets)(Code)
The factory method creates an immutable policy instance which represents a policy expression with alternatives specified by sets input parameter. If the collection of policy alternatives is null or empty an object representing a 'NULL' policy expression is returned. However, in such case it is better to use Policy.createNullPolicy() factory method directly.
Parameters:
  sets - represents the collection of policy alternatives of the policy object created. During the creation ofthe new policy object, the content of the alternatives collection is copied into an internal policy object structure,thus any subsequent operations on the collection will have no impact on the newly constructed policy object. policy instance which represents the policy with given alternatives.



createPolicy
public static Policy createPolicy(String name, String policyId, Collection<AssertionSet> sets)(Code)
The factory method creates an immutable policy instance which represents a policy expression with alternatives specified by sets input parameter. If the collection of policy alternatives is null or empty an object representing a 'NULL' policy expression is returned. However, in such case it is better to use Policy.createNullPolicy(String,String) factory method directly.
Parameters:
  name - global URI of the policy. May be null .
Parameters:
  policyId - local URI of the policy. May be null .
Parameters:
  sets - represents the collection of policy alternatives of the policy object created. During the creation ofthe new policy object, the content of the alternatives collection is copied into an internal policy object structure,thus any subsequent operations on the collection will have no impact on the newly constructed policy object. policy instance which represents the policy with given alternatives.



equals
public boolean equals(Object obj)(Code)
An Object.equals(Object obj) method override.



getContent
Collection<AssertionSet> getContent()(Code)



getId
public String getId()(Code)
Returns the policy identifier that serves as a local relative policy URI. policy identifier - a local relative policy URI. If no policy identifier is set, returns null .



getIdOrName
public String getIdOrName()(Code)
Returns the policy ID or if that is null the policy name. May return null if both attributes are null.
See Also:   Policy.getId()
See Also:   Policy.getName() The policy ID if it was set, or the name or null if no attribute was set.



getName
public String getName()(Code)
Returns the policy name that serves as a global policy URI. policy name - a global policy URI. If no policy name is set, returns null .



getNumberOfAssertionSets
public int getNumberOfAssertionSets()(Code)
Method returns how many policy alternatives this policy instance contains. number of policy alternatives contained in this policy instance



getVocabulary
public Collection<QName> getVocabulary()(Code)
Retrieves the vocabulary of this policy expression. The vocabulary is represented by an immutable collection of unique QName objects. Each of those objects represents single assertion type contained in the policy. immutable collection of assertion types contained in the policy (a policy vocabulary).



hashCode
public int hashCode()(Code)
An Object.hashCode() method override.



isEmpty
public boolean isEmpty()(Code)
Returns true if the policy instance represents "anything allowed" policy expression true if the policy instance represents "anything allowed" policy expression, false otherwise.



isNull
public boolean isNull()(Code)
Returns true if the policy instance represents "nothing allowed" policy expression true if the policy instance represents "nothing allowed" policy expression, false otherwise.



iterator
public Iterator<AssertionSet> iterator()(Code)
A policy usually contains one or more assertion sets. Each assertion set corresponds to a policy alternative as defined by WS-Policy. An iterator to iterate through all contained assertion sets



toString
public String toString()(Code)
An Object.toString() method override.



toString
StringBuffer toString(int indentLevel, StringBuffer buffer)(Code)
A helper method that appends indented string representation of this instance to the input string buffer.
Parameters:
  indentLevel - indentation level to be used.
Parameters:
  buffer - buffer to be used for appending string representation of this instance modified buffer containing new string representation of the instance



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.