001// 002// NAME 003// Group.java 004// 005// COPYRIGHT 006// Copyright 2007-2014 Cloud Software Group, Inc. ALL RIGHTS RESERVED. 007// Cloud Software Group, Inc. Confidential Information 008// 009// HISTORY 010// $Revision: 1.1.2.84 $ $Date: 2014/02/06 20:35:16 $ 011// 012// WARNINGS 013// THIS FILE IS GENERATED, DO NOT EDIT 014// 015 016package com.kabira.platform.switchconfig; 017 018import java.util.*; 019import com.kabira.platform.annotation.*; 020 021 022/** 023<p> 024 Representation of a named configuration. 025<p> 026 Each named configuration can have one or more 027 versions in memory. Note that only one version 028 is considered "active" at any time. 029<p> 030 Every named configuration is associated with a single 031 configuration type, represented by 032 033<p> 034{@link GroupKind}. 035 036*/ 037 038@Managed 039@KeyList(keys = { 040 @Key(name = "ByGroupKindId", ordered = false, unique = true, fields = {"groupKind", "groupId"}) 041}) 042public class Group 043{ 044 private static final String _RuntimeType = "switchconfig::Group"; 045 046/** 047Create a new Group 048 049*/ 050 protected Group() 051 { 052 super(); 053 this.groupKind = null; 054 this.groupId = null; 055 } 056 057 /** 058 <p> 059Group kind identifier 060 061 062 */ 063 064 public final String groupKind; 065 066 067 /** 068 <p> 069Group identifier. 070 071 072 */ 073 074 public final String groupId; 075 076 077 /** 078 <p> 079 Returns the configuration name. 080@return The configuration name. 081 082 */ 083 084 public final native String toString(); 085 086 087 /** 088 <p> 089 Returns the configuration type. 090@return The configuration type. 091 092 */ 093 094 public final native com.kabira.platform.switchconfig.GroupKind getType(); 095 096 097 /** 098 <p> 099 Returns the versions of this configuration 100 that are currently available. 101 102@return Zero or more Version instances. 103 104 */ 105 106 public final native com.kabira.platform.switchconfig.Version[] getVersions(); 107 108 109 /** 110 <p> 111 Returns the active version of this 112 configuration, or null if no version 113 is active. 114 115@return The Version instance for the action version, 116 if an active version exists. 117 118 119 */ 120 121 public final native com.kabira.platform.switchconfig.Version getActiveVersion(); 122 123}