1 15 package org.apache.hivemind.parse; 16 17 import org.apache.hivemind.definition.Occurances; 18 import org.apache.hivemind.definition.Visibility; 19 import org.apache.hivemind.schema.impl.SchemaImpl; 20 import org.apache.hivemind.util.ToStringBuilder; 21 22 28 public final class ServicePointDescriptor extends AbstractServiceDescriptor 29 { 30 private String _id; 31 32 private String _interfaceClassName; 33 34 private SchemaImpl _parametersSchema; 35 36 37 private String _parametersSchemaId; 38 39 private Occurances _parametersCount = Occurances.REQUIRED; 40 41 42 private Visibility _visibility = Visibility.PUBLIC; 43 44 public String getId() 45 { 46 return _id; 47 } 48 49 public String getInterfaceClassName() 50 { 51 return _interfaceClassName; 52 } 53 54 public void setId(String string) 55 { 56 _id = string; 57 } 58 59 public void setInterfaceClassName(String string) 60 { 61 _interfaceClassName = string; 62 } 63 64 protected void extendDescription(ToStringBuilder builder) 65 { 66 builder.append("id", _id); 67 builder.append("interfaceClassName", _interfaceClassName); 68 builder.append("parametersSchema", _parametersSchema); 69 builder.append("parametersSchemaId", _parametersSchemaId); 70 builder.append("parametersCount", _parametersCount); 71 builder.append("visibility", _visibility); 72 } 73 74 public SchemaImpl getParametersSchema() 75 { 76 return _parametersSchema; 77 } 78 79 public void setParametersSchema(SchemaImpl schema) 80 { 81 _parametersSchema = schema; 82 } 83 84 85 public String getParametersSchemaId() 86 { 87 return _parametersSchemaId; 88 } 89 90 91 public void setParametersSchemaId(String schemaId) 92 { 93 _parametersSchemaId = schemaId; 94 } 95 96 public Occurances getParametersCount() 97 { 98 return _parametersCount; 99 } 100 101 public void setParametersCount(Occurances occurances) 102 { 103 _parametersCount = occurances; 104 } 105 106 109 public Visibility getVisibility() 110 { 111 return _visibility; 112 } 113 114 117 public void setVisibility(Visibility visibility) 118 { 119 _visibility = visibility; 120 } 121 } | Popular Tags |