/** * Extractor rule definition entity for JAXB. * * @author zhangliang */ @XmlRootElement(name = "extractor-rule-definition") @Getter public final class ExtractorRuleDefinitionEntity implements RuleDefinitionEntity { @XmlElement(name = "extractor-rule") private Collection<ExtractorRuleEntity> rules = new LinkedList<>(); }
@Deprecated // Not used, just kept for config compatibility @XmlAccessorType(XmlAccessType.NONE) public class DefaultEmailNotification { @XmlElement(required = true, name = "subject") private String subject; @XmlElement(required = true, name = "templateName") private String templateName; @XmlElement(required = false, name = "isHTML") private Boolean isHTML = false; }
public class User { @XmlAttribute public String name; @XmlElement(name="display-name") public String displayName; @XmlElement(name="first-name") public String firstName; @XmlElement(name="last-name") public String lastName; public String email; private org.jivesoftware.openfire.user.User openfireUser; public synchronized org.jivesoftware.openfire.user.User getOpenfireUser() { if (openfireUser == null) { openfireUser = new org.jivesoftware.openfire.user.User(name, displayName, email, new Date(), new Date()); } return openfireUser; } }
/** * The wrapper root document for multiple {@link Doc} elements. * Created on: Jun 10, 2008<br> * * @author Martin Grotzke (martin.grotzke at freiheit.com) */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "applicationDocs", propOrder = { "docs" }) @XmlRootElement(name = "applicationDocs") public class ApplicationDocs { @XmlElement(name = "doc") protected List<Doc> docs; public List<Doc> getDocs() { if (docs == null) { docs = new ArrayList<>(); } return this.docs; } }
@XmlRootElement(name="undeploy-task-def-command") @XmlAccessorType(XmlAccessType.NONE) public class UndeployTaskDefCommand extends TaskCommand<Void> { private static final long serialVersionUID = 5656199063761548979L; @XmlElement @XmlSchemaType(name="string") private String taskDefId; public UndeployTaskDefCommand() { } public UndeployTaskDefCommand(String taskDefId) { this.taskDefId = taskDefId; } public Void execute(Context cntxt) { TaskContext context = (TaskContext) cntxt; context.getTaskDefService().undeployTaskDef(taskDefId); return null; } }
/** * 刷卡支付 授权码查询OPENID 返回数据 * @author LiYi * */ @XmlRootElement(name = "xml") @XmlAccessorType(XmlAccessType.FIELD) public class AuthcodetoopenidResult extends MchBase{ @XmlElement private String openid; public String getOpenid() { return openid; } public void setOpenid(String openid) { this.openid = openid; } }
/** * SQL test cases for xml root tag. * * @author zhangliang */ @XmlRootElement(name = "sql-cases") @Getter public final class SQLCases { @XmlAttribute private String namespace; @XmlAttribute(name = "db-types") private String databaseTypes; @XmlElement(name = "sql-case") private List<SQLCase> sqlCases = new LinkedList<>(); }
@XmlAccessorType(XmlAccessType.FIELD) public class IpCamDescriptor { @XmlAttribute private String name = null; @XmlAttribute(name = "url") private String urlString = null; @XmlAttribute(name = "mode") private IpCamMode mode = IpCamMode.PULL; @XmlElement(name = "auth") private AuthParams authParams = null;
/** * The wrapper root document for multiple {@link Doc} elements. * Created on: Jun 10, 2008<br> * * @author Martin Grotzke (martin.grotzke at freiheit.com) */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "applicationDocs", propOrder = { "docs" }) @XmlRootElement(name = "applicationDocs") public class ApplicationDocs { @XmlElement(name = "doc") protected List<Doc> docs; public List<Doc> getDocs() { if (docs == null) { docs = new ArrayList<>(); } return this.docs; } }
@XmlRootElement(name="get-attachment-command") @XmlAccessorType(XmlAccessType.NONE) public class GetAttachmentCommand extends TaskCommand<Attachment> { @XmlElement(name="attachment-id") @XmlSchemaType(name="long") private Long attachmentId;
/** * native 回复 * @author LiYi * */ @XmlRootElement(name="xml") @XmlAccessorType(XmlAccessType.FIELD) public class MchPayNativeReply extends MchBase{ @XmlElement private String prepay_id; public String getPrepay_id() { return prepay_id; } public void setPrepay_id(String prepay_id) { this.prepay_id = prepay_id; } }
/** * Filler rule definition entity for JAXB. * * @author zhangliang */ @XmlRootElement(name = "filler-rule-definition") @Getter public final class FillerRuleDefinitionEntity implements RuleDefinitionEntity { @XmlElement(name = "filler-rule") private Collection<FillerRuleEntity> rules = new LinkedList<>(); }
@XmlRootElement(name = "fsa") public static class FSA { @XmlAttribute String semiring; @XmlAttribute int initial; // first real state @XmlElement(name = "input-alphabet") Alphabet inputAlphabet; @XmlElement(name = "output-alphabet") Alphabet outputAlphabet; @XmlElement(name = "state") List<State> states; transient List<edu.cmu.sphinx.fst.State> openFstStates;
/** * Represents a named grouping of properties, corresponding to a metadata injection group. */ private static class PropGroup { @XmlAttribute String name; @XmlElement ( name = "property" ) List<Prop> props; @SuppressWarnings ( "unused" ) public PropGroup() { } // needed for deserialization PropGroup( String name, List<Prop> propList ) { this.name = name; this.props = propList; } @Override public String toString() { return "PropGroup{" + "name='" + name + '\'' + ", props=" + props + '}'; } }
@XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "exception") @XmlType(name = "") public class ExceptionWrapper { @XmlElement final String errorCode; @XmlElement final Object message; public ExceptionWrapper() { this.errorCode = null; this.message = null; } public ExceptionWrapper(final String errorCode, final Object content) { this.errorCode = errorCode; this.message = content; } public Object getMessage() { return message; } }
@XmlRootElement(name="get-task-by-work-item-id-command") @XmlAccessorType(XmlAccessType.NONE) public class GetTaskByWorkItemIdCommand extends TaskCommand<Task> { @XmlElement @XmlSchemaType(name="long") private Long workItemId;
/** * 退款查询 * * @author Yi * */ @XmlRootElement(name = "xml") @XmlAccessorType(XmlAccessType.FIELD) public class MchReverseResult extends MchBase{ @XmlElement private String recall; public String getRecall() { return recall; } public void setRecall(String recall) { this.recall = recall; } }
/** * SQL statement rule definition entity for JAXB. * * @author zhangliang */ @XmlRootElement(name = "sql-statement-rule-definition") @Getter public final class SQLStatementRuleDefinitionEntity implements RuleDefinitionEntity { @XmlElement(name = "sql-statement-rule") private Collection<SQLStatementRuleEntity> rules = new LinkedList<>(); }
@XmlRootElement(name = "rootName") public class ModelWithJAXBAnnotations { @XmlAttribute public String id; @XmlElement(name = "renamed") public String name; @JsonIgnore @XmlAttribute public String hidden; public List<String> list; @XmlElementWrapper(name = "wrappedListItems") @XmlElement(name = "wrappedList") public List<String> wrappedList; @XmlAttribute(name = "doNotUseMe") public List<String> forcedElement; }
public static class Arc { @XmlAttribute int target; @XmlElement int in; // automatically set to 0 (which corresponds to epsilon) if not // set in XML @XmlElement int out; // automatically set to 0 (which corresponds to epsilon) if not // set in XML @XmlElement float weight; public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { target++; // increment state ID (because we add a new initial state // 0 transitioning via <s>:<s>) } public edu.cmu.sphinx.fst.Arc toOpenFstArc( List<edu.cmu.sphinx.fst.State> openFstStates) { return new edu.cmu.sphinx.fst.Arc(in, out, weight, openFstStates.get(target)); } }