org.apache.ws.jaxme.js
Class JavaSource.Protection

java.lang.Object
  extended by org.apache.ws.jaxme.js.JavaSource.Protection
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
JavaSource

public static class JavaSource.Protection
extends java.lang.Object
implements java.io.Serializable

Specifies a java objects protection (default, public, protected, or private).

See Also:
Serialized Form

Method Summary
 java.lang.String toString()
           
static JavaSource.Protection valueOf(int pModifiers)
          Returns an instance of Protection by using the methods Modifier.isPublic(int), Modifier.isProtected(int) and Modifier.isPrivate(int) on the argument pModifiers.
static JavaSource.Protection valueOf(java.lang.String pProtection)
          Converts the given string into a protection type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

valueOf

public static JavaSource.Protection valueOf(java.lang.String pProtection)
Converts the given string into a protection type.


valueOf

public static JavaSource.Protection valueOf(int pModifiers)
Returns an instance of Protection by using the methods Modifier.isPublic(int), Modifier.isProtected(int) and Modifier.isPrivate(int) on the argument pModifiers. If neither returns true, assumes JavaSource.DEFAULT_PROTECTION.