本文整理匯總了Java中oms3.annotations.Status類的典型用法代碼示例。如果您正苦於以下問題:Java Status類的具體用法?Java Status怎麽用?Java Status使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Status類屬於oms3.annotations包,在下文中一共展示了Status類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getStatusString
import oms3.annotations.Status; //導入依賴的package包/類
private static String getStatusString( int statusValue ) {
switch( statusValue ) {
case Status.CERTIFIED:
return "CERTIFIED";
case Status.DRAFT:
return "DRAFT";
case Status.EXPERIMENTAL:
return "EXPERIMENTAL";
case Status.TESTED:
return "TESTED";
case Status.VALIDATED:
return "VALIDATED";
}
return "DRAFT";
}
示例2: getStatusString
import oms3.annotations.Status; //導入依賴的package包/類
public static String getStatusString( int statusValue ) {
switch( statusValue ) {
case Status.CERTIFIED:
return "CERTIFIED";
case Status.DRAFT:
return "DRAFT";
case Status.EXPERIMENTAL:
return "EXPERIMENTAL";
case Status.TESTED:
return "TESTED";
case Status.VALIDATED:
return "VALIDATED";
}
return "DRAFT";
}
示例3: getLocalizedStatus
import oms3.annotations.Status; //導入依賴的package包/類
public static String getLocalizedStatus( Status annotation ) throws Exception {
// try to get the language
Class< ? > annotationclass = Status.class;
return getLocalizedString(annotation, annotationclass);
}