1 28 29 package org.objectweb.util.explorer.core.role.lib; 30 31 import org.objectweb.util.explorer.core.common.api.Description; 32 import org.objectweb.util.explorer.core.role.api.RoleDescription; 33 34 42 public class DefaultRoleDescription 43 implements RoleDescription 44 { 45 46 52 protected String id_; 53 54 protected String [] inheritance_; 55 56 protected boolean concrete_ = true; 57 58 64 70 76 79 public String getDescriptionType() { 80 return Description.ROLE_DESCRIPTION; 81 } 82 83 86 public boolean isEmpty() { 87 return id_==null || id_.equals(""); 88 } 89 90 96 99 public void setId(String id) { 100 id_ = id; 101 } 102 103 106 public String getId() { 107 return id_; 108 } 109 110 113 public void setInheritance(String [] inheritance) { 114 inheritance_ = inheritance; 115 } 116 117 120 public String [] getInheritance() { 121 return inheritance_; 122 } 123 124 127 public void setConcrete(boolean concrete) { 128 concrete_ = concrete; 129 } 130 131 134 public boolean isConcrete() { 135 return concrete_; 136 } 137 138 } | Popular Tags |