public class DefaultDynClass extends java.lang.Object implements DynClass_v2
Modifier and Type | Class and Description |
---|---|
static class |
DefaultDynClass.CheckDynClassListException |
class |
DefaultDynClass.FieldAndIndex |
class |
DefaultDynClass.MethodAndIndex |
Constructor and Description |
---|
DefaultDynClass(DynObjectManager manager,
DynClassName name,
java.lang.String description) |
DefaultDynClass(DynObjectManager manager,
java.lang.String name,
java.lang.String description) |
DefaultDynClass(DynObjectManager manager,
java.lang.String name,
java.lang.String description,
DynClass[] superClases) |
DefaultDynClass(DynObjectManager manager,
java.lang.String namespace,
java.lang.String name,
java.lang.String description) |
DefaultDynClass(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
DynField |
addDynField(DynField field) |
DynField |
addDynField(java.lang.String name) |
DynField |
addDynField(java.lang.String name,
int type) |
DynField |
addDynFieldArray(java.lang.String name) |
DynField |
addDynFieldBoolean(java.lang.String name) |
DynField |
addDynFieldChoice(java.lang.String name,
int type,
java.lang.Object defaultValue,
DynObjectValueItem[] values) |
DynField |
addDynFieldChoice(java.lang.String name,
int type,
java.lang.Object defaultValue,
DynObjectValueItem[] values,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldDate(java.lang.String name) |
DynField |
addDynFieldDouble(java.lang.String name) |
DynField |
addDynFieldFile(java.lang.String name) |
DynField |
addDynFieldFloat(java.lang.String name) |
DynField |
addDynFieldFolder(java.lang.String name) |
DynField |
addDynFieldInt(java.lang.String name) |
DynField |
addDynFieldList(java.lang.String name) |
DynField |
addDynFieldLong(java.lang.String name) |
DynField |
addDynFieldMap(java.lang.String name) |
DynField |
addDynFieldObject(java.lang.String name) |
DynField |
addDynFieldObject(java.lang.String name,
java.lang.String dynObjectFullName) |
DynField |
addDynFieldObjectList(java.lang.String name,
java.lang.String fullDynObjectName) |
DynField |
addDynFieldRange(java.lang.String name,
int type,
java.lang.Object defaultValue,
java.lang.Object min,
java.lang.Object max) |
DynField |
addDynFieldRange(java.lang.String name,
int type,
java.lang.Object defaultValue,
java.lang.Object min,
java.lang.Object max,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldSet(java.lang.String name) |
DynField |
addDynFieldSingle(java.lang.String name,
int type,
java.lang.Object defaultValue) |
DynField |
addDynFieldSingle(java.lang.String name,
int type,
java.lang.Object defaultValue,
boolean mandatory,
boolean persistent) |
DynField |
addDynFieldString(java.lang.String name) |
DynField |
addDynFieldURI(java.lang.String name) |
DynField |
addDynFieldURL(java.lang.String name) |
void |
addDynMethod(DynMethod dynMethod) |
void |
check() |
void |
consolide() |
java.util.Map |
createValues(java.util.Map oldValues) |
boolean |
equals(java.lang.Object obj) |
void |
extend(DynStruct dynStruct) |
void |
extend(DynStruct[] structs) |
void |
extend(java.lang.String structName) |
void |
extend(java.lang.String namespace,
java.lang.String structame) |
void |
extendAll(java.lang.String[] structNames) |
DynField |
getDeclaredDynField(java.lang.String name) |
DynField[] |
getDeclaredDynFields() |
DynMethod |
getDeclaredDynMethod(java.lang.String name) |
DynMethod[] |
getDeclaredDynMethods() |
java.lang.String |
getDescription() |
DynField |
getDynField(java.lang.String name) |
DefaultDynClass.FieldAndIndex |
getDynFieldAndIndex(java.lang.String name) |
DynField[] |
getDynFields() |
DynMethod |
getDynMethod(int code) |
DynMethod |
getDynMethod(java.lang.String name) |
DynMethod[] |
getDynMethods() |
int |
getFieldIndex(java.lang.String name) |
java.lang.String |
getFullName() |
java.lang.String |
getLabel() |
DynObjectManager |
getManager() |
java.lang.String |
getName() |
java.lang.String |
getNamespace() |
Script |
getScript() |
DynClass[] |
getSuperDynClasses() |
DynStruct[] |
getSuperDynStructs() |
Tags |
getTags() |
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isExtendable(DynStruct dynStruct) |
boolean |
isInstance(DynObject dynObject) |
DynObject |
newInstance() |
void |
remove(DynStruct superDynStruct)
Removes a given dynStruct from the current superDynClasses of this
dynClass.
|
void |
removeAll(DynStruct[] superDynStruct) |
void |
removeDynField(java.lang.String name) |
void |
removeDynMethod(java.lang.String name) |
void |
renameField(java.lang.String oldname,
java.lang.String newName) |
void |
setAnonymous(boolean isAnonymous) |
void |
setDescription(java.lang.String description) |
void |
setLabel(java.lang.String label) |
void |
setName(DynClassName name) |
void |
setNamespace(java.lang.String namespace) |
void |
setScript(Script script) |
java.lang.String |
toString() |
void |
validate(DynObject object) |
public DefaultDynClass(java.lang.String name)
public DefaultDynClass(DynObjectManager manager, java.lang.String name, java.lang.String description)
public DefaultDynClass(DynObjectManager manager, java.lang.String namespace, java.lang.String name, java.lang.String description)
public DefaultDynClass(DynObjectManager manager, DynClassName name, java.lang.String description)
public DefaultDynClass(DynObjectManager manager, java.lang.String name, java.lang.String description, DynClass[] superClases)
public void setName(DynClassName name)
public java.lang.String getNamespace()
getNamespace
in interface DynStruct
public java.lang.String getFullName()
getFullName
in interface DynStruct
public java.lang.String toString()
toString
in class java.lang.Object
public DynObjectManager getManager()
public Script getScript()
getScript
in interface DynClass_v2
public void setScript(Script script)
setScript
in interface DynClass_v2
public void consolide()
public java.util.Map createValues(java.util.Map oldValues)
public void extendAll(java.lang.String[] structNames)
public void extend(java.lang.String namespace, java.lang.String structame)
public int getFieldIndex(java.lang.String name)
public DynField getDeclaredDynField(java.lang.String name)
getDeclaredDynField
in interface DynStruct
public DynField[] getDeclaredDynFields()
getDeclaredDynFields
in interface DynStruct
public java.lang.String getDescription()
getDescription
in interface DynStruct
public DynField getDynField(java.lang.String name)
getDynField
in interface DynStruct
public DefaultDynClass.FieldAndIndex getDynFieldAndIndex(java.lang.String name)
public DynField[] getDynFields()
getDynFields
in interface DynStruct
public DynField addDynField(java.lang.String name)
addDynField
in interface DynStruct
public DynField addDynField(java.lang.String name, int type)
addDynField
in interface DynStruct_v2
public DynClass[] getSuperDynClasses()
getSuperDynClasses
in interface DynClass
public DynStruct[] getSuperDynStructs()
getSuperDynStructs
in interface DynStruct
public DynObject newInstance()
newInstance
in interface DynStruct
public boolean isInstance(DynObject dynObject)
isInstance
in interface DynStruct
public void removeDynField(java.lang.String name)
removeDynField
in interface DynStruct
public void setAnonymous(boolean isAnonymous)
public boolean isAnonymous()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void addDynMethod(DynMethod dynMethod)
addDynMethod
in interface DynClass
public DynMethod getDeclaredDynMethod(java.lang.String name)
getDeclaredDynMethod
in interface DynClass
public DynMethod[] getDeclaredDynMethods()
getDeclaredDynMethods
in interface DynClass
public DynMethod getDynMethod(java.lang.String name) throws DynMethodException
getDynMethod
in interface DynClass
DynMethodException
public DynMethod getDynMethod(int code) throws DynMethodException
getDynMethod
in interface DynClass
DynMethodException
public DynMethod[] getDynMethods()
getDynMethods
in interface DynClass
public void removeDynMethod(java.lang.String name)
removeDynMethod
in interface DynClass
public void validate(DynObject object) throws DynObjectValidateException
validate
in interface DynStruct
DynObjectValidateException
public DynField addDynFieldString(java.lang.String name)
addDynFieldString
in interface DynStruct
public DynField addDynFieldDate(java.lang.String name)
addDynFieldDate
in interface DynStruct
public DynField addDynFieldInt(java.lang.String name)
addDynFieldInt
in interface DynStruct
public DynField addDynFieldLong(java.lang.String name)
addDynFieldLong
in interface DynStruct
public DynField addDynFieldDouble(java.lang.String name)
addDynFieldDouble
in interface DynStruct
public DynField addDynFieldFloat(java.lang.String name)
addDynFieldFloat
in interface DynStruct
public DynField addDynFieldBoolean(java.lang.String name)
addDynFieldBoolean
in interface DynStruct
public DynField addDynFieldFolder(java.lang.String name)
addDynFieldFolder
in interface DynStruct
public DynField addDynFieldFile(java.lang.String name)
addDynFieldFile
in interface DynStruct
public DynField addDynFieldURL(java.lang.String name)
addDynFieldURL
in interface DynStruct
public DynField addDynFieldURI(java.lang.String name)
addDynFieldURI
in interface DynStruct
public DynField addDynFieldArray(java.lang.String name)
addDynFieldArray
in interface DynStruct
public DynField addDynFieldObject(java.lang.String name)
addDynFieldObject
in interface DynStruct
public DynField addDynFieldChoice(java.lang.String name, int type, java.lang.Object defaultValue, DynObjectValueItem[] values)
addDynFieldChoice
in interface DynStruct
#addDynFieldChoice(String)
public DynField addDynFieldChoice(java.lang.String name, int type, java.lang.Object defaultValue, DynObjectValueItem[] values, boolean mandatory, boolean persistent)
addDynFieldChoice
in interface DynStruct
#addDynFieldChoice(String)
public DynField addDynFieldRange(java.lang.String name, int type, java.lang.Object defaultValue, java.lang.Object min, java.lang.Object max)
addDynFieldRange
in interface DynStruct
#addDynFieldRange(String)
public DynField addDynFieldRange(java.lang.String name, int type, java.lang.Object defaultValue, java.lang.Object min, java.lang.Object max, boolean mandatory, boolean persistent)
addDynFieldRange
in interface DynStruct
#addDynFieldRange(String)
public DynField addDynFieldSingle(java.lang.String name, int type, java.lang.Object defaultValue)
addDynFieldSingle
in interface DynStruct
DynStruct.addDynFieldString(String)
public DynField addDynFieldSingle(java.lang.String name, int type, java.lang.Object defaultValue, boolean mandatory, boolean persistent)
addDynFieldSingle
in interface DynStruct
DynStruct.addDynFieldString(String)
public DynField addDynFieldObject(java.lang.String name, java.lang.String dynObjectFullName)
public DynField addDynFieldObjectList(java.lang.String name, java.lang.String fullDynObjectName)
public DynField addDynFieldList(java.lang.String name)
addDynFieldList
in interface DynStruct
public DynField addDynFieldMap(java.lang.String name)
addDynFieldMap
in interface DynStruct
public DynField addDynFieldSet(java.lang.String name)
addDynFieldSet
in interface DynStruct
public void setDescription(java.lang.String description)
setDescription
in interface DynStruct
public void setNamespace(java.lang.String namespace)
setNamespace
in interface DynStruct
public void check() throws ListBaseException
ListBaseException
public boolean isExtendable(DynStruct dynStruct)
isExtendable
in interface DynStruct
public void remove(DynStruct superDynStruct)
DynStruct
public void removeAll(DynStruct[] superDynStruct)
public void extend(DynStruct[] structs)
public Tags getTags()
getTags
in interface DynStruct_v2
getTags
in interface Tagged
public java.lang.String getLabel()
getLabel
in interface DynStruct_v2
public void setLabel(java.lang.String label)
setLabel
in interface DynStruct_v2
public void renameField(java.lang.String oldname, java.lang.String newName)