code
stringlengths
73
34.1k
label
stringclasses
1 value
public Sight getSight(long sightId, Integer level) throws SmartsheetException { String path = "sights/" + sightId; HashMap<String, Object> parameters = new HashMap<String, Object>(); if (level != null) { parameters.put("level", level); } path += QueryUtil.generateUrl...
java
public Sight updateSight(Sight sight) throws SmartsheetException { Util.throwIfNull(sight); return this.updateResource("sights/" + sight.getId(), Sight.class, sight); }
java
public SightPublish setPublishStatus(long sightId, SightPublish sightPublish) throws SmartsheetException { Util.throwIfNull(sightPublish); return this.updateResource("sights/" + sightId + "/publish", SightPublish.class, sightPublish); }
java
public PagedResult<Template> listUserCreatedTemplates(PaginationParameters parameters) throws SmartsheetException { String path = "templates"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Template.class); }
java
public Folder getFolder(long folderId, EnumSet<SourceInclusion> includes) throws SmartsheetException { String path = "folders/" + folderId; HashMap<String, Object> parameters = new HashMap<String, Object>(); parameters.put("include", QueryUtil.generateCommaSeparatedList(includes)); path ...
java
public Folder updateFolder(Folder folder) throws SmartsheetException { return this.updateResource("folders/" + folder.getId(), Folder.class, folder); }
java
public PagedResult<Folder> listFolders(long parentFolderId, PaginationParameters parameters) throws SmartsheetException { String path = "folders/" + parentFolderId + "/folders"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWra...
java
public Folder createFolder(long parentFolderId, Folder folder) throws SmartsheetException { return this.createResource("folders/" + parentFolderId + "/folders", Folder.class, folder); }
java
public Folder moveFolder(long folderId, ContainerDestination containerDestination) throws SmartsheetException { String path = "folders/" + folderId + "/move"; return this.createResource(path, Folder.class, containerDestination); }
java
public SearchResult searchSheet(long sheetId, String query) throws SmartsheetException { Util.throwIfNull(query); Util.throwIfEmpty(query); try { return this.getResource("search/sheets/" + sheetId + "?query=" + URLEncoder.encode(query, "utf-8"), SearchResult.class...
java
public Attachment attachUrl(long sheetId, Attachment attachment) throws SmartsheetException { return this.createResource("sheets/" + sheetId + "/attachments", Attachment.class, attachment); }
java
public PagedResult<Attachment> listAttachments(long sheetId, PaginationParameters parameters) throws SmartsheetException { String path = "sheets/" + sheetId + "/attachments"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper...
java
public OAuthFlow build() { if(httpClient == null){ httpClient = new DefaultHttpClient(); } if(tokenURL == null){ tokenURL = DEFAULT_TOKEN_URL; } if(authorizationURL == null){ authorizationURL = DEFAULT_AUTHORIZATION_URL; } if...
java
public Folder createFolder(long workspaceId, Folder folder) throws SmartsheetException { return this.createResource("workspaces/" + workspaceId + "/folders", Folder.class, folder); }
java
public List<Favorite> addFavorites(List<Favorite> favorites) throws SmartsheetException{ return this.postAndReceiveList("favorites/", favorites, Favorite.class); }
java
public PagedResult<Favorite> listFavorites(PaginationParameters parameters) throws SmartsheetException{ String path = "favorites"; if (parameters != null) { path += parameters.toQueryString(); } return this.listResourcesWithWrapper(path, Favorite.class); }
java
public static <T> String generateCommaSeparatedList(Collection<T> list) { if (list == null || list.size() == 0) { return ""; } StringBuilder result = new StringBuilder(); for (Object obj : list) { result.append(',').append(obj.toString()); } return...
java
protected static String generateQueryString(Map<String, Object> parameters) { if (parameters == null || parameters.size() == 0) { return ""; } StringBuilder result = new StringBuilder(); try { for(Map.Entry<String, Object> entry : parameters.entrySet()) { ...
java
@JsonIgnore public static Message errorMessage(String detailMessage) { Message message = new Message(); message.setDetailMessage(detailMessage); message.setSeverity("ERROR"); message.setType(""); return message; }
java
@JsonAnySetter public void handleJsonArrayToJavaString(String name, Object value) { try { PropertyUtils.setProperty(this, name, this.convertListToString(value)); } catch (IllegalAccessException e) { log.debug("Error setting field " + name + " with value " + value + " on entity " + this.getClass()....
java
public String convertListToString(Object listOrString) { if (listOrString == null) { return null; } if (listOrString instanceof Collection) { List<String> list = (List<String>) listOrString; return StringUtils.join(list, ","); } return listOrString.toString(); }
java
private ObjectMapper createObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new JodaModule()); mapper.configure(SerializationFeature.INDENT_OUTPUT, true); return mapper; }
java
public <T> T jsonToEntityUnwrapRoot(String jsonString, Class<T> type) { return jsonToEntity(jsonString, type, this.objectMapperWrapped); }
java
public <T extends BullhornEntity> String convertEntityToJsonString(T entity) { String jsonString = ""; try { jsonString = objectMapperStandard.writeValueAsString(entity); } catch (JsonProcessingException e) { log.error("Error deserializing entity of type" + entity.getClas...
java
public Map<String, String> getUriVariablesForEntity(BullhornEntityInfo entityInfo, Integer id, Set<String> fieldSet, EntityParams params) { if (params == null) { params = ParamFactory.entityParams(); } Map<String, String> uriVariables = params.getParameterMap(); this.addCommonUriVariables(fieldSet, entityI...
java
public Map<String, String> getUriVariablesForEntityDelete(BullhornEntityInfo entityInfo, Integer id) { Map<String, String> uriVariables = new LinkedHashMap<String, String>(); addModifyingUriVariables(uriVariables, entityInfo); uriVariables.put(ID, id.toString()); return uriVariables; }
java
public Map<String, String> getUriVariablesForEntityInsert(BullhornEntityInfo entityInfo) { Map<String, String> uriVariables = new LinkedHashMap<String, String>(); addModifyingUriVariables(uriVariables, entityInfo); return uriVariables; }
java
public Map<String, String> getUriVariablesForQueryWithPost(BullhornEntityInfo entityInfo, Set<String> fieldSet, QueryParams params) { Map<String, String> uriVariables = params.getParameterMap(); this.addCommonUriVariables(fieldSet, entityInfo, uriVariables); return uriVariables; }
java
public Map<String, String> getUriVariablesForQuery(BullhornEntityInfo entityInfo, String where, Set<String> fieldSet, QueryParams params) { Map<String, String> uriVariables = params.getParameterMap(); this.addCommonUriVariables(fieldSet, entityInfo, uriVariables); uriVariables.put(WHERE, where); return uriVa...
java
public Map<String, String> getUriVariablesForSearchWithPost(BullhornEntityInfo entityInfo, Set<String> fieldSet, SearchParams params) { Map<String, String> uriVariables = params.getParameterMap(); this.addCommonUriVariables(fieldSet, entityInfo, uriVariables); return uriVariables; }
java
public Map<String, String> getUriVariablesForSearch(BullhornEntityInfo entityInfo, String query, Set<String> fieldSet, SearchParams params) { Map<String, String> uriVariables = params.getParameterMap(); this.addCommonUriVariables(fieldSet, entityInfo, uriVariables); uriVariables.put(QUERY, query); return uri...
java
public Map<String, String> getUriVariablesForIdSearch(BullhornEntityInfo entityInfo, String query, SearchParams params) { Map<String, String> uriVariables = params.getParameterMap()...
java
public Map<String, String> getUriVariablesForResumeFileParse(ResumeFileParseParams params, MultipartFile resume) { if (params == null) { params = ParamFactory.resumeFileParseParams(); } Map<String, String> uriVariables = params.getParameterMap(); String bhRestToken = bullhornApiRest.getBhRestToken(); ur...
java
public Map<String, String> getUriVariablesForResumeTextParse(ResumeTextParseParams params) { if (params == null) { params = ParamFactory.resumeTextParseParams(); } Map<String, String> uriVariables = params.getParameterMap(); String bhRestToken = bullhornApiRest.getBhRestToken(); uriVariables.put(BH_REST...
java
public Map<String, String> getUriVariablesForGetFile(BullhornEntityInfo entityInfo, Integer entityId, Integer fileId) { Map<String, String> uriVariables = new LinkedHashMap<String, String>(); String bhRestToken = bullhornApiRest.getBhRestToken(); uriVariables.put(BH_REST_TOKEN, bhRestToken); uriVariables.put(EN...
java
public Map<String, String> getUriVariablesForCorpNotes(Integer clientCorporationID, Set<String> fieldSet, CorpNotesParams params) { if (params == null) { params = ParamFactory.corpNotesParams(); } Map<String, String> uriVariables = params.getParameterMap(); String bhRestToken = bullhornApiRest.getBhRestTok...
java
private void addModifyingUriVariables(Map<String, String> uriVariables, BullhornEntityInfo entityInfo) { String bhRestToken = bullhornApiRest.getBhRestToken(); uriVariables.put(BH_REST_TOKEN, bhRestToken); uriVariables.put(ENTITY_TYPE, entityInfo.getName()); uriVariables.put(EXECUTE_FORM...
java
public Map<String, String> getUriVariablesForFastFind(String query, FastFindParams params) { Map<String, String> uriVariables = params.getParameterMap(); uriVariables.put(BH_REST_TOKEN, bullhornApiRest.getBhRestToken()); uriVariables.put(QUERY, query); return uriVariables; }
java
protected <C extends CrudResponse, T extends UpdateEntity> List<C> handleMultipleUpdates(List<T> entityList) { if (entityList == null || entityList.isEmpty()) { return Collections.emptyList(); } List<EntityUpdateWorker<C>> taskList = new ArrayList<EntityUpdateWorker<C>>(); ...
java
protected <P extends ParsedResume> P handleParseResumeText(String resume, ResumeTextParseParams params) { Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForResumeTextParse(params); String url = restUrlFactory.assembleParseResumeTextUrl(params); JSONObject resumeInfoTo...
java
protected ParsedResume parseResume(String url, Object requestPayLoad, Map<String, String> uriVariables) { ParsedResume response = null; for (int tryNumber = 1; tryNumber <= RESUME_PARSE_RETRY; tryNumber++) { try { response = this.performPostResumeRequest(url, requestPayLoad, ...
java
protected List<FileWrapper> handleGetAllFileContentWithMetaData(Class<? extends FileEntity> type, Integer entityId) { List<FileMeta> metaDataList = this.handleGetEntityMetaFiles(type, entityId); // Create an ExecutorService with the number of processors available to the Java virtual machine. Exe...
java
protected FileWrapper handleGetFileContentWithMetaData(Class<? extends FileEntity> type, Integer entityId, Integer fileId) { FileWrapper fileWrapper = null; try { FileContent fileContent = this.handleGetFileContent(type, entityId, fileId); List<FileMeta> metaDataList = this.hand...
java
protected List<FileMeta> handleGetEntityMetaFiles(Class<? extends FileEntity> type, Integer entityId) { Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForGetEntityMetaFiles( BullhornEntityInfo.getTypesRestEntityName(type), entityId); String url = restUrlFactory...
java
protected FileContent handleGetFileContent(Class<? extends FileEntity> type, Integer entityId, Integer fileId) { Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesForGetFile(BullhornEntityInfo.getTypesRestEntityName(type), entityId, fileId); String url = restUrlFa...
java
protected FileWrapper handleAddFileWithMultipartFile(Class<? extends FileEntity> type, Integer entityId, MultipartFile multipartFile, String externalId, FileParams params, boolean deleteFile) { MultiValueMap<String, Object> multiValueMap = null; tr...
java
protected FileWrapper handleAddFileAndUpdateCandidateDescription(Integer candidateId, File file, String candidateDescription, String externalId, FileParams params, boolean deleteFile) { // first add the file FileWrapper fileWrapper = thi...
java
protected <P extends ParsedResume> P addFileThenHandleParseResume(Class<? extends FileEntity> type, Integer entityId, MultipartFile multipartFile, String externalId, FileParams fileParams, ResumeFileParseParams params) { FileWrapper fileWrapper...
java
protected FileApiResponse handleDeleteFile(Class<? extends FileEntity> type, Integer entityId, Integer fileId) { Map<String, String> uriVariables = restUriVariablesFactory.getUriVariablesDeleteFile(BullhornEntityInfo.getTypesRestEntityName(type), entityId, fileId); String url = restUrlFa...
java
protected <C extends CrudResponse, T extends AssociationEntity> C handleAssociateWithEntity(Class<T> type, Integer entityId, AssociationField<T, ? extends BullhornEntity> associationName, Set<Integer> associationIds) { ...
java
public <T extends BullhornEntity> CrudResponse handleHttpFourAndFiveHundredErrors(CrudResponse response, HttpStatusCodeException error, Integer id) { response.setChangedEntityId(id); Message message = new Message(); message.setDetailMessage(error.getResponseBodyAsString()); m...
java
private void displayMBeans(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Iterator mbeans; try { mbeans = getDomainData(); } catch (Exception e) { throw new ServletException("Failed to get MBeans", e); ...
java
private void inspectMBean(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name = request.getParameter("name"); if (trace) log.trace("inspectMBean, name=" + name); try { MBeanData data = getMBeanData(name); ...
java
private void updateAttributes(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name = request.getParameter("name"); if (trace) log.trace("updateAttributes, name=" + name); Enumeration paramNames = request.getParameterNames(); ...
java
private void invokeOpByName(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String name = request.getParameter("name"); if (trace) log.trace("invokeOpByName, name=" + name); String[] argTypes = request.getParameterValues("argType"); ...
java
private MBeanData getMBeanData(final String name) throws PrivilegedActionException { return AccessController.doPrivileged(new PrivilegedExceptionAction<MBeanData>() { public MBeanData run() throws Exception { return Server.getMBeanData(name); } }); }
java
@SuppressWarnings({ "unchecked" }) private AttributeList setAttributes(final String name, final HashMap attributes) throws PrivilegedActionException { return AccessController.doPrivileged(new PrivilegedExceptionAction<AttributeList>() { public AttributeList run() throws Exception { ...
java
private void writeTransaction(Definition def, Writer out, int indent) throws IOException { writeWithIndent(out, indent, "/**\n"); writeWithIndent(out, indent, " * Returns an <code>javax.resource.spi.LocalTransaction</code> instance.\n"); writeWithIndent(out, indent, " *\n"); writeWithIndent(o...
java
private static Class<?>[] getFields(Class<?> clz) { List<Class<?>> result = new ArrayList<Class<?>>(); Class<?> c = clz; while (!c.equals(Object.class)) { try { Field[] fields = SecurityActions.getDeclaredFields(c); if (fields.length > 0) ...
java
public void execute(Runnable job) { try { executor.execute(job); } catch (RejectedExecutionException e) { log.warnf(e, "Job rejected: %s", job); } }
java
public int getIdleThreads() { if (executor instanceof ThreadPoolExecutor) { final ThreadPoolExecutor tpe = (ThreadPoolExecutor)executor; return tpe.getPoolSize() - tpe.getActiveCount(); } return -1; }
java
public boolean isLowOnThreads() { if (executor instanceof ThreadPoolExecutor) { final ThreadPoolExecutor tpe = (ThreadPoolExecutor)executor; return tpe.getActiveCount() >= tpe.getMaximumPoolSize(); } return false; }
java
public static Pool createPool(String type, ConnectionManager cm, PoolConfiguration pc) { if (type == null || type.equals("")) return new DefaultPool(cm, pc); type = type.toLowerCase(Locale.US); switch (type) { case "default": return new DefaultPool(cm, pc...
java
static Set<PasswordCredential> getPasswordCredentials(final Subject subject) { if (System.getSecurityManager() == null) return subject.getPrivateCredentials(PasswordCredential.class); return AccessController.doPrivileged(new PrivilegedAction<Set<PasswordCredential>>() { public S...
java
static StackTraceElement[] getStackTrace(final Thread t) { if (System.getSecurityManager() == null) return t.getStackTrace(); return AccessController.doPrivileged(new PrivilegedAction<StackTraceElement[]>() { public StackTraceElement[] run() { return t.getSt...
java
public static void main(String[] args) { boolean quiet = false; String outputDir = "."; //put report into current directory by default int arg = 0; String[] classpath = null; if (args.length > 0) { while (args.length > arg + 1) { if (args[arg]....
java
protected LocalXAResource getLocalXAResource(ManagedConnection mc) throws ResourceException { TransactionalConnectionManager txCM = (TransactionalConnectionManager) cm; LocalXAResource xaResource = null; String eisProductName = null; String eisProductVersion = null; String jndiName = cm...
java
protected XAResource getXAResource(ManagedConnection mc) throws ResourceException { TransactionalConnectionManager txCM = (TransactionalConnectionManager) cm; XAResource xaResource = null; if (cm.getConnectionManagerConfiguration().isWrapXAResource()) { String eisProductName = null;...
java
@Override public void prefill() { if (isShutdown()) return; if (poolConfiguration.isPrefill()) { ManagedConnectionPool mcp = pools.get(getPrefillCredential()); if (mcp == null) { // Trigger the initial-pool-size prefill by creating the ManagedCon...
java
@Override public Credential getPrefillCredential() { if (this.prefillCredential == null) { if (cm.getSubjectFactory() == null || cm.getConnectionManagerConfiguration().getSecurityDomain() == null) { prefillCredential = new Credential(null, null); } else ...
java
protected boolean isRarArchive(URL url) { if (url == null) return false; return isRarFile(url) || isRarDirectory(url); }
java
protected boolean isRarFile(URL url) { if (url != null && url.toExternalForm().endsWith(".rar") && !url.toExternalForm().startsWith("jar")) return true; return false; }
java
@Override public Object getAnnotation() { try { if (isOnField()) { Class<?> clazz = cl.loadClass(className); while (!clazz.equals(Object.class)) { try { Field field = SecurityActions.getDeclaredField(...
java
public DataSources parse(XMLStreamReader reader) throws Exception { DataSources dataSources = null; //iterate over tags int iterate; try { iterate = reader.nextTag(); } catch (XMLStreamException e) { //found a non tag..go on. Normally non-tag found a...
java
public void store(DataSources metadata, XMLStreamWriter writer) throws Exception { if (metadata != null && writer != null) { writer.writeStartElement(XML.ELEMENT_DATASOURCES); if (metadata.getDataSource() != null && !metadata.getDataSource().isEmpty()) { for (DataS...
java
protected void storeDriver(Driver drv, XMLStreamWriter writer) throws Exception { writer.writeStartElement(XML.ELEMENT_DRIVER); if (drv.getName() != null) writer.writeAttribute(XML.ATTRIBUTE_NAME, drv.getValue(XML.ATTRIBUTE_NAME, drv.getName())); if (drv.ge...
java
public static ClassDefinition createClassDefinition(Serializable s, Class<?> clz) { if (s == null || clz == null) return null; String name = clz.getName(); long serialVersionUID = 0L; byte[] data = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); InputStr...
java
private static Field getSerialVersionUID(Class<?> clz) { Class<?> c = clz; while (c != null) { try { Field svuf = SecurityActions.getDeclaredField(clz, "serialVersionUID"); SecurityActions.setAccessible(svuf); return svuf; } ca...
java
protected WorkManager parseWorkManager(XMLStreamReader reader) throws XMLStreamException, ParserException, ValidateException { WorkManagerSecurity security = null; while (reader.hasNext()) { switch (reader.nextTag()) { case END_ELEMENT : { if (Com...
java
protected void storeAdminObject(AdminObject ao, XMLStreamWriter writer) throws Exception { writer.writeStartElement(CommonXML.ELEMENT_ADMIN_OBJECT); if (ao.getClassName() != null) writer.writeAttribute(CommonXML.ATTRIBUTE_CLASS_NAME, ao.getValue(CommonXML.ATTRIBUT...
java
public static AnnotationScanner getAnnotationScanner() { if (active != null) return active; if (defaultImplementation == null) throw new IllegalStateException(bundle.noAnnotationScanner()); return defaultImplementation; }
java
void writeConfigPropsDeclare(Definition def, Writer out, int indent) throws IOException { if (getConfigProps(def) == null) return; for (int i = 0; i < getConfigProps(def).size(); i++) { writeWithIndent(out, indent, "/** " + getConfigProps(def).get(i).getName() + " */\n"); ...
java
void writeConfigProps(Definition def, Writer out, int indent) throws IOException { if (getConfigProps(def) == null) return; for (int i = 0; i < getConfigProps(def).size(); i++) { String name = getConfigProps(def).get(i).getName(); String upcaseName = upcaseFirst(name); ...
java
public synchronized Object verifyConnectionListener(ConnectionListener cl) throws ResourceException { for (Map.Entry<Object, Map<ManagedConnectionPool, ConnectionListener>> entry : transactionMap.entrySet()) { if (entry.getValue().values().contains(cl)) { try { ...
java
public static List<Failure> validateConfigPropertiesType(ValidateClass vo, String section, String failMsg) { List<Failure> failures = new ArrayList<Failure>(1); for (ConfigProperty cpmd : vo.getConfigProperties()) { try { containGetOrIsMethod(vo, "get", cpmd, section...
java
private static void containGetOrIsMethod(ValidateClass vo, String getOrIs, ConfigProperty cpmd, String section, String failMsg, List<Failure> failures) throws NoSuchMethodException { String methodName = getOrIs + cpmd.getConfigPropertyName().getValue().substring(0, 1).toUpperCase(Locale.US); ...
java
protected org.ironjacamar.core.connectionmanager.listener.ConnectionListener getConnectionListener( Credential credential) throws ResourceException { org.ironjacamar.core.connectionmanager.listener.ConnectionListener result = null; Exception failure = null; // First attempt boolean ...
java
private org.ironjacamar.core.connectionmanager.listener.ConnectionListener associateConnectionListener(Credential credential, Object connection) throws ResourceException { log.tracef("associateConnectionListener(%s, %s)", credential, connection); if (isShutdown()) { throw new ...
java
private boolean shouldEnlist(ConnectionListener cl) { if (cmConfiguration.isEnlistment() && cl.getManagedConnection() instanceof LazyEnlistableManagedConnection) return false; return true; }
java
static WARClassLoader createWARClassLoader(final Kernel kernel, final ClassLoader parent) { return AccessController.doPrivileged(new PrivilegedAction<WARClassLoader>() { public WARClassLoader run() { return new WARClassLoader(kernel, parent); } }); }
java
static WebAppClassLoader createWebAppClassLoader(final ClassLoader cl, final WebAppContext wac) { return AccessController.doPrivileged(new PrivilegedAction<WebAppClassLoader>() { public WebAppClassLoader run() { try { return new WebAppClassLoader(...
java
void generateRaCode(Definition def) { if (def.isUseRa()) { generateClassCode(def, "Ra"); generateClassCode(def, "RaMeta"); } if (def.isGenAdminObject()) { for (int i = 0; i < def.getAdminObjects().size(); i++) { generateMultiAdminObjectCla...
java
void generateOutboundCode(Definition def) { if (def.isSupportOutbound()) { if (def.getMcfDefs() == null) throw new IllegalStateException("Should define at least one mcf class"); for (int num = 0; num < def.getMcfDefs().size(); num++) { generateMultiMcfC...
java
void generateInboundCode(Definition def) { if (def.isSupportInbound()) { if (def.isDefaultPackageInbound()) generateClassCode(def, "Ml", "inflow"); generateClassCode(def, "As", "inflow"); generateClassCode(def, "Activation", "inflow"); generatePackageInfo(d...
java
void generateMBeanCode(Definition def) { if (def.isSupportOutbound()) { generateClassCode(def, "MbeanInterface", "mbean"); generateClassCode(def, "MbeanImpl", "mbean"); generatePackageInfo(def, "main", "mbean"); } }
java
void generateClassCode(Definition def, String className, String subDir) { if (className == null || className.equals("")) return; try { String clazzName = this.getClass().getPackage().getName() + ".code." + className + "CodeGen"; String javaFile = Definitio...
java
void generateMultiMcfClassCode(Definition def, String className, int num) { if (className == null || className.equals("")) return; if (num < 0 || num + 1 > def.getMcfDefs().size()) return; try { String clazzName = this.getClass().getPackage().getName() + ".code." +...
java
void generateMultiAdminObjectClassCode(Definition def, String className, int num) { if (className == null || className.equals("")) return; try { String clazzName = this.getClass().getPackage().getName() + ".code." + className + "CodeGen"; Class<?> clazz = Class.forName(...
java
void generateAntIvyXml(Definition def, String outputDir) { try { FileWriter antfw = Utils.createFile("build.xml", outputDir); BuildIvyXmlGen bxGen = new BuildIvyXmlGen(); bxGen.generate(def, antfw); antfw.close(); FileWriter ivyfw = Utils.createFile("ivy.xml"...
java
void generateGradle(Definition def, String outputDir) { try { FileWriter bgfw = Utils.createFile("build.gradle", outputDir); BuildGradleGen bgGen = new BuildGradleGen(); bgGen.generate(def, bgfw); bgfw.close(); } catch (IOException ioe) { ioe...
java