public class ModelField extends Object implements Serializable
| Constructor and Description |
|---|
ModelField(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(IsType returns,
String propertyName,
String methodName,
Annotation[] annotations,
IsType[] parameters) |
xapi.dev.model.ModelField.GetterMethod |
addGetter(IsType returns,
String propertyName,
String methodName,
Annotation[] annotations) |
xapi.dev.model.ModelField.SetterMethod |
addSetter(IsType returns,
String propertyName,
String methodName,
Annotation[] annotations,
IsType[] parameters) |
boolean |
equals(Object obj) |
Iterable<xapi.dev.model.ModelField.ActionMethod> |
getActions() |
xapi.annotation.model.SerializationStrategy |
getC2sSerializer() |
xapi.annotation.model.ClientToServer |
getClientToServer() |
Iterable<xapi.dev.model.ModelField.GetterMethod> |
getGetters() |
xapi.annotation.model.Key |
getKey() |
String |
getName() |
xapi.annotation.model.PersistenceStrategy |
getPersistenceStrategy() |
xapi.annotation.model.Persistent |
getPersistent() |
xapi.annotation.model.SerializationStrategy |
getS2cSerializer() |
xapi.annotation.model.Serializable |
getSerializable() |
xapi.annotation.model.ServerToClient |
getServerToClient() |
Iterable<xapi.dev.model.ModelField.SetterMethod> |
getSetters() |
String |
getType() |
Class<? extends xapi.util.api.ValidatesValue<?>>[] |
getValidators() |
int |
hashCode() |
boolean |
isC2sEnabled() |
boolean |
isC2sEncrypted() |
boolean |
isObfuscated() |
boolean |
isS2cEnabled() |
boolean |
isS2cEncrypted() |
ModelField |
setClientToServer(xapi.annotation.model.ClientToServer clientToServer) |
ModelField |
setKey(xapi.annotation.model.Key key) |
ModelField |
setPersistent(xapi.annotation.model.Persistent persistent) |
ModelField |
setSerializable(xapi.annotation.model.Serializable serializable) |
ModelField |
setServerToClient(xapi.annotation.model.ServerToClient serverToClient) |
void |
setType(String type) |
String |
toString() |
public ModelField(String name)
public xapi.annotation.model.ClientToServer getClientToServer()
public ModelField setClientToServer(xapi.annotation.model.ClientToServer clientToServer)
clientToServer - the clientToServer to setpublic xapi.annotation.model.Key getKey()
public ModelField setKey(xapi.annotation.model.Key key)
key - the key to setpublic String getName()
public xapi.annotation.model.ServerToClient getServerToClient()
public ModelField setServerToClient(xapi.annotation.model.ServerToClient serverToClient)
serverToClient - the serverToClient to setpublic xapi.annotation.model.Serializable getSerializable()
public ModelField setSerializable(xapi.annotation.model.Serializable serializable)
serializable - the serializable to setpublic xapi.annotation.model.Persistent getPersistent()
public ModelField setPersistent(xapi.annotation.model.Persistent persistent)
persistent - the persistent to setpublic String getType()
public void setType(String type)
type - the type to setpublic xapi.dev.model.ModelField.GetterMethod addGetter(IsType returns, String propertyName, String methodName, Annotation[] annotations)
public xapi.dev.model.ModelField.SetterMethod addSetter(IsType returns, String propertyName, String methodName, Annotation[] annotations, IsType[] parameters)
public void addAction(IsType returns, String propertyName, String methodName, Annotation[] annotations, IsType[] parameters)
public Iterable<xapi.dev.model.ModelField.GetterMethod> getGetters()
public Iterable<xapi.dev.model.ModelField.SetterMethod> getSetters()
public Iterable<xapi.dev.model.ModelField.ActionMethod> getActions()
public boolean isC2sEnabled()
public boolean isS2cEnabled()
public boolean isC2sEncrypted()
public boolean isS2cEncrypted()
public boolean isObfuscated()
public xapi.annotation.model.SerializationStrategy getC2sSerializer()
public xapi.annotation.model.SerializationStrategy getS2cSerializer()
public xapi.annotation.model.PersistenceStrategy getPersistenceStrategy()
public Class<? extends xapi.util.api.ValidatesValue<?>>[] getValidators()
Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.