Package io.github.ma1uta.matrix.protocol
Class Protocol
- java.lang.Object
-
- io.github.ma1uta.matrix.protocol.Protocol
-
public class Protocol extends Object
Protocol metadata.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,FieldMetadata>
fieldTypes
Required.private String
icon
Required.private List<Instance>
instances
Required.private List<String>
locationFields
Required.private List<String>
userFields
Required.
-
Constructor Summary
Constructors Constructor Description Protocol()
-
Method Summary
Modifier and Type Method Description Map<String,FieldMetadata>
getFieldTypes()
String
getIcon()
List<Instance>
getInstances()
List<String>
getLocationFields()
List<String>
getUserFields()
void
setFieldTypes(Map<String,FieldMetadata> fieldTypes)
void
setIcon(String icon)
void
setInstances(List<Instance> instances)
void
setLocationFields(List<String> locationFields)
void
setUserFields(List<String> userFields)
-
-
-
Field Detail
-
locationFields
private List<String> locationFields
Required. Fields used to identify a third party location.
-
icon
private String icon
Required. An icon representing the third party protocol.
-
fieldTypes
private Map<String,FieldMetadata> fieldTypes
Required. All location or user fields should have an entry here.
-
-
Method Detail
-
getIcon
public String getIcon()
-
setIcon
public void setIcon(String icon)
-
getFieldTypes
public Map<String,FieldMetadata> getFieldTypes()
-
setFieldTypes
public void setFieldTypes(Map<String,FieldMetadata> fieldTypes)
-
-