List of usage examples for org.jdom2 Element getChildText
public String getChildText(final String cname)
From source file:org.yawlfoundation.yawl.resourcing.resource.Capability.java
License:Open Source License
public void reconstitute(Element e) { super.reconstitute(e); setCapability(JDOMUtil.decodeEscapes(e.getChildText("name"))); }
From source file:org.yawlfoundation.yawl.resourcing.resource.nonhuman.NonHumanResource.java
License:Open Source License
public void fromXML(Element e) { setID(e.getAttributeValue("id")); setName(JDOMUtil.decodeEscapes(e.getChildText("name"))); setDescription(JDOMUtil.decodeEscapes(e.getChildText("description"))); setNotes(JDOMUtil.decodeEscapes(e.getChildText("notes"))); }
From source file:org.yawlfoundation.yawl.resourcing.resource.OrgGroup.java
License:Open Source License
public void reconstitute(Element e) { super.reconstitute(e); setGroupName(JDOMUtil.decodeEscapes(e.getChildText("groupName"))); set_groupType(e.getChildText("groupType")); set_belongsToID(e.getChildText("belongsToID")); }
From source file:org.yawlfoundation.yawl.resourcing.resource.Participant.java
License:Open Source License
public void reconstitute(Element e) { setID(e.getAttributeValue("id")); setUserID(JDOMUtil.decodeEscapes(e.getChildText("userid"))); setFirstName(JDOMUtil.decodeEscapes(e.getChildText("firstname"))); setLastName(JDOMUtil.decodeEscapes(e.getChildText("lastname"))); setAdministrator(e.getChildText("isAdministrator").equals("true")); }
From source file:org.yawlfoundation.yawl.resourcing.resource.Position.java
License:Open Source License
public void reconstitute(Element e) { super.reconstitute(e); setPositionID(JDOMUtil.decodeEscapes(e.getChildText("positionid"))); setTitle(JDOMUtil.decodeEscapes(e.getChildText("title"))); set_reportsToID(JDOMUtil.decodeEscapes(e.getChildText("reportstoid"))); set_orgGroupID(e.getChildText("orggroupid")); }
From source file:org.yawlfoundation.yawl.resourcing.resource.Role.java
License:Open Source License
public void reconstitute(Element e) { super.reconstitute(e); setName(JDOMUtil.decodeEscapes(e.getChildText("name"))); set_belongsToID(e.getChildText("belongsToID")); }
From source file:org.yawlfoundation.yawl.resourcing.resource.UserPrivileges.java
License:Open Source License
public void reconstitute(Element e) { if (e != null) { setID(e.getAttributeValue("participantid")); setCanChooseItemToStart(e.getChildText("canChooseItemToStart").equals("true")); setCanStartConcurrent(e.getChildText("canStartConcurrent").equals("true")); setCanReorder(e.getChildText("canReorder").equals("true")); // setCanViewAllOffered(e.getChildText("canViewAllOffered").equals("true")); // setCanViewAllAllocated(e.getChildText("canViewAllAllocated").equals("true")); // setCanViewAllExecuting(e.getChildText("canViewAllExecuting").equals("true")); setCanViewTeamItems(e.getChildText("canViewTeamItems").equals("true")); setCanViewOrgGroupItems(e.getChildText("canViewOrgGroupItems").equals("true")); setCanChainExecution(e.getChildText("canChainExecution").equals("true")); setCanManageCases(e.getChildText("canManageCases").equals("true")); }// w w w .j av a 2 s.c o m }
From source file:org.yawlfoundation.yawl.resourcing.ResourceManager.java
License:Open Source License
public String getNetParamValue(String caseID, String paramName) throws IOException { String caseData = _services.getCaseData(caseID); Element eData = JDOMUtil.stringToElement(caseData); return (eData != null) ? eData.getChildText(paramName) : null; }
From source file:org.yawlfoundation.yawl.resourcing.rsInterface.ResourceGatewayClientAdapter.java
License:Open Source License
private NonHumanResource buildNonHumanResource(Element e, String handle) throws IOException, ResourceGatewayException { NonHumanResource resource = new NonHumanResource(e); Element catElem = e.getChild("nonHumanCategory"); if (catElem != null) { resource.setCategory(getNonHumanCategory(catElem.getAttributeValue("id"), handle)); }/*w w w. j a v a2s. c om*/ Element subcatElem = e.getChild("nonHumanSubCategory"); if (subcatElem != null) { resource.setSubCategory(subcatElem.getChildText("name")); } return resource; }
From source file:org.yawlfoundation.yawl.resourcing.rsInterface.ResourceGatewayClientAdapter.java
License:Open Source License
public Map<String, String> getCodeletMap(String handle) throws IOException, ResourceGatewayException { Map<String, String> result = new TreeMap<String, String>(); String cStr = successCheck(_rgclient.getCodelets(handle)); Element eList = JDOMUtil.stringToElement(cStr); if (eList != null) { for (Element codelet : eList.getChildren()) { result.put(codelet.getChildText("canonicalname"), JDOMUtil.decodeEscapes(codelet.getChildText("description"))); }/*www .jav a2 s . c om*/ } return result; }