org.apache.ws.jaxme.js

Class JavaSource.Protection

Enclosing Class:
JavaSource
Implemented Interfaces:
Serializable

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

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

Method Summary

String
toString()
static JavaSource.Protection
valueOf(String pProtection)
Converts the given string into a protection type.
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.

Method Details

toString

public String toString()

valueOf

public static JavaSource.Protection valueOf(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.