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