@Test void addStaticListField() { BaseClass baseClass = new BaseClass(); StaticListClass slc = baseClass.addStaticListField("field"); slc.setPrettyName("Custom Field"); assertNotNull(slc); assertNotNull(slc.getObject()); assertNotNull(baseClass.get("field")); assertEquals("Custom Field", ((StaticListClass) baseClass.get("field")).getPrettyName()); }
public boolean addStaticListField(String fieldName, String fieldPrettyName, String values) { return addStaticListField(fieldName, fieldPrettyName, 1, false, values); }
BaseClass extends BaseCollection<DocumentReference> implements ClassInterface { public boolean addStaticListField(String fieldName, String fieldPrettyName, String values) { return addStaticListField(fieldName, fieldPrettyName, 1, false, values); } }
BaseClass extends BaseCollection<DocumentReference> implements ClassInterface { public boolean addStaticListField(String fieldName, String fieldPrettyName, String values) { return addStaticListField(fieldName, fieldPrettyName, 1, false, values); }  }
BaseClass extends BaseCollection<DocumentReference> implements ClassInterface { public boolean addStaticListField(String fieldName, String fieldPrettyName, String values) { return addStaticListField(fieldName, fieldPrettyName, 1, false, values); }  @Override DocumentReference getReference(); @Deprecated @Override String getName(); @Deprecated @Override void setName(String name); @Override void addField(String name, PropertyInterface element); void disableField(String name); void enableField(String name); @Override PropertyInterface get(String name); @Override void put(String name, PropertyInterface property); List<PropertyClass> getEnabledProperties(); List<PropertyClass> getDisabledProperties(); List<PropertyClass> getDisabledObjectProperties(BaseObject object); List<BaseProperty> getDeprecatedObjectProperties(BaseObject object); BaseProperty fromString(String value); @Deprecated BaseCollection newObject(XWikiContext context); @Deprecated BaseCollection fromMap(Map<String, ?> map, XWikiContext context); BaseCollection fromMap(Map<String, ?> map, BaseCollection object); BaseCollection fromValueMap(Map<String, ?> map, BaseCollection object); @Override BaseClass clone(); @Override boolean equals(Object obj); void merge(BaseClass bclass); @Override void fromXML(Element element); @Override void fromXML(String xml); boolean addTextField(String fieldName, String fieldPrettyName, int size); boolean addPasswordField(String fieldName, String fieldPrettyName, int size); boolean addPasswordField(String fieldName, String fieldPrettyName, int size, String storageType); boolean addEmailField(String fieldName, String fieldPrettyName, int size); boolean addTimezoneField(String fieldName, String fieldPrettyName, int size); boolean addBooleanField(String fieldName, String fieldPrettyName); boolean addBooleanField(String fieldName, String fieldPrettyName, String displayType); boolean addBooleanField(String fieldName, String fieldPrettyName, String displayType, Boolean def); boolean addBooleanField(String fieldName, String fieldPrettyName, String formType, String displayType,
        Boolean def); boolean addUsersField(String fieldName, String fieldPrettyName); boolean addUsersField(String fieldName, String fieldPrettyName, boolean multiSelect); boolean addUsersField(String fieldName, String fieldPrettyName, int size); boolean addUsersField(String fieldName, String fieldPrettyName, int size, boolean multiSelect); boolean addLevelsField(String fieldName, String fieldPrettyName); boolean addLevelsField(String fieldName, String fieldPrettyName, int size); boolean addGroupsField(String fieldName, String fieldPrettyName); boolean addGroupsField(String fieldName, String fieldPrettyName, int size); boolean addTemplateField(String fieldName, String fieldPrettyName); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, EditorType editorType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, String editor); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows,
        ContentType contentType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, EditorType editorType,
        ContentType contentType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, String editor,
        String contenttype); boolean addStaticListField(String fieldName, String fieldPrettyName, String values); boolean addStaticListField(String fieldName, String fieldPrettyName, String values, String defaultValue); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values, String displayType); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values, String displayType, String separators); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators, String defaultValue); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators, String defaultValue,
        String freeText, boolean largeStorage); StaticListClass addStaticListField(String fieldName); boolean addNumberField(String fieldName, String fieldPrettyName, int size, String type); boolean addDateField(String fieldName, String fieldPrettyName); boolean addDateField(String fieldName, String fieldPrettyName, String dformat); boolean addDateField(String fieldName, String fieldPrettyName, String dformat, int emptyIsToday); boolean addDBListField(String fieldName, String fieldPrettyName, String sql); boolean addDBListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect, String sql); boolean addDBListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String sql); boolean addPageField(String fieldName, String fieldPrettyName, int size); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String hqlQuery); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
            boolean relationalStorage, String hqlQuery, String className, String displayType, boolean hasPicker,
            String freeText); void setCustomMapping(String customMapping); String getCustomMapping(); boolean hasCustomMapping(); boolean hasExternalCustomMapping(); boolean hasInternalCustomMapping(); boolean isCustomMappingValid(XWikiContext context); boolean isCustomMappingValid(String custommapping, XWikiContext context); List<String> getCustomMappingPropertyList(XWikiContext context); void setCustomClass(String customClass); String getCustomClass(); BaseObject newCustomClassInstance(XWikiContext context); BaseObject newCustomClassInstance(boolean fallback); static BaseObject newCustomClassInstance(DocumentReference classReference, XWikiContext context); static BaseObject newCustomClassInstance(DocumentReference classReference, boolean fallback,
        XWikiContext context); @Deprecated static BaseObject newCustomClassInstance(String className, XWikiContext context); String getDefaultWeb(); void setDefaultWeb(String defaultWeb); String getDefaultViewSheet(); void setDefaultViewSheet(String defaultViewSheet); String getDefaultEditSheet(); void setDefaultEditSheet(String defaultEditSheet); String getNameField(); void setNameField(String nameField); void setValidationScript(String validationScript); String getValidationScript(); boolean validateObject(BaseObject obj, XWikiContext context); void flushCache(); @Override List<ObjectDiff> getDiff(Object oldObject, XWikiContext context); @Override void merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration,
        XWikiContext context, MergeResult mergeResult); @Override boolean apply(ElementInterface newElement, boolean clean); @Override void setOwnerDocument(XWikiDocument ownerDocument); void setDirty(boolean isDirty); }
BaseClass extends BaseCollection<DocumentReference> implements ClassInterface { public boolean addStaticListField(String fieldName, String fieldPrettyName, String values) { return addStaticListField(fieldName, fieldPrettyName, 1, false, values); }  @Override DocumentReference getReference(); @Deprecated @Override String getName(); @Deprecated @Override void setName(String name); @Override void addField(String name, PropertyInterface element); void disableField(String name); void enableField(String name); @Override PropertyInterface get(String name); @Override void put(String name, PropertyInterface property); List<PropertyClass> getEnabledProperties(); List<PropertyClass> getDisabledProperties(); List<PropertyClass> getDisabledObjectProperties(BaseObject object); List<BaseProperty> getDeprecatedObjectProperties(BaseObject object); BaseProperty fromString(String value); @Deprecated BaseCollection newObject(XWikiContext context); @Deprecated BaseCollection fromMap(Map<String, ?> map, XWikiContext context); BaseCollection fromMap(Map<String, ?> map, BaseCollection object); BaseCollection fromValueMap(Map<String, ?> map, BaseCollection object); @Override BaseClass clone(); @Override boolean equals(Object obj); void merge(BaseClass bclass); @Override void fromXML(Element element); @Override void fromXML(String xml); boolean addTextField(String fieldName, String fieldPrettyName, int size); boolean addPasswordField(String fieldName, String fieldPrettyName, int size); boolean addPasswordField(String fieldName, String fieldPrettyName, int size, String storageType); boolean addEmailField(String fieldName, String fieldPrettyName, int size); boolean addTimezoneField(String fieldName, String fieldPrettyName, int size); boolean addBooleanField(String fieldName, String fieldPrettyName); boolean addBooleanField(String fieldName, String fieldPrettyName, String displayType); boolean addBooleanField(String fieldName, String fieldPrettyName, String displayType, Boolean def); boolean addBooleanField(String fieldName, String fieldPrettyName, String formType, String displayType,
        Boolean def); boolean addUsersField(String fieldName, String fieldPrettyName); boolean addUsersField(String fieldName, String fieldPrettyName, boolean multiSelect); boolean addUsersField(String fieldName, String fieldPrettyName, int size); boolean addUsersField(String fieldName, String fieldPrettyName, int size, boolean multiSelect); boolean addLevelsField(String fieldName, String fieldPrettyName); boolean addLevelsField(String fieldName, String fieldPrettyName, int size); boolean addGroupsField(String fieldName, String fieldPrettyName); boolean addGroupsField(String fieldName, String fieldPrettyName, int size); boolean addTemplateField(String fieldName, String fieldPrettyName); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, EditorType editorType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, String editor); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows,
        ContentType contentType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, EditorType editorType,
        ContentType contentType); boolean addTextAreaField(String fieldName, String fieldPrettyName, int cols, int rows, String editor,
        String contenttype); boolean addStaticListField(String fieldName, String fieldPrettyName, String values); boolean addStaticListField(String fieldName, String fieldPrettyName, String values, String defaultValue); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values, String displayType); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String values, String displayType, String separators); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators, String defaultValue); boolean addStaticListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String values, String displayType, String separators, String defaultValue,
        String freeText, boolean largeStorage); StaticListClass addStaticListField(String fieldName); boolean addNumberField(String fieldName, String fieldPrettyName, int size, String type); boolean addDateField(String fieldName, String fieldPrettyName); boolean addDateField(String fieldName, String fieldPrettyName, String dformat); boolean addDateField(String fieldName, String fieldPrettyName, String dformat, int emptyIsToday); boolean addDBListField(String fieldName, String fieldPrettyName, String sql); boolean addDBListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect, String sql); boolean addDBListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        String sql); boolean addDBTreeListField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String sql); boolean addPageField(String fieldName, String fieldPrettyName, int size); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
        boolean relationalStorage, String hqlQuery); boolean addPageField(String fieldName, String fieldPrettyName, int size, boolean multiSelect,
            boolean relationalStorage, String hqlQuery, String className, String displayType, boolean hasPicker,
            String freeText); void setCustomMapping(String customMapping); String getCustomMapping(); boolean hasCustomMapping(); boolean hasExternalCustomMapping(); boolean hasInternalCustomMapping(); boolean isCustomMappingValid(XWikiContext context); boolean isCustomMappingValid(String custommapping, XWikiContext context); List<String> getCustomMappingPropertyList(XWikiContext context); void setCustomClass(String customClass); String getCustomClass(); BaseObject newCustomClassInstance(XWikiContext context); BaseObject newCustomClassInstance(boolean fallback); static BaseObject newCustomClassInstance(DocumentReference classReference, XWikiContext context); static BaseObject newCustomClassInstance(DocumentReference classReference, boolean fallback,
        XWikiContext context); @Deprecated static BaseObject newCustomClassInstance(String className, XWikiContext context); String getDefaultWeb(); void setDefaultWeb(String defaultWeb); String getDefaultViewSheet(); void setDefaultViewSheet(String defaultViewSheet); String getDefaultEditSheet(); void setDefaultEditSheet(String defaultEditSheet); String getNameField(); void setNameField(String nameField); void setValidationScript(String validationScript); String getValidationScript(); boolean validateObject(BaseObject obj, XWikiContext context); void flushCache(); @Override List<ObjectDiff> getDiff(Object oldObject, XWikiContext context); @Override void merge(ElementInterface previousElement, ElementInterface newElement, MergeConfiguration configuration,
        XWikiContext context, MergeResult mergeResult); @Override boolean apply(ElementInterface newElement, boolean clean); @Override void setOwnerDocument(XWikiDocument ownerDocument); void setDirty(boolean isDirty);  }