Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
6d288330
Commit
6d288330
authored
Mar 29, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备参数解析
parent
6f17ee6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
CutterbarWarning.java
...m/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
+9
-0
No files found.
src/main/java/com/baosight/hpjx/equipment/hp/domain/CutterbarWarning.java
View file @
6d288330
...
...
@@ -3,6 +3,7 @@ package com.baosight.hpjx.equipment.hp.domain;
import
com.baosight.hpjx.xml.IXml
;
import
com.baosight.hpjx.xml.XmlUtils
;
import
lombok.Data
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.util.List
;
import
java.util.Objects
;
...
...
@@ -63,4 +64,12 @@ public class CutterbarWarning {
}
return
warning
;
}
public
static
void
main
(
String
[]
args
)
{
List
<
CutterbarWarningBase
>
list
=
XmlUtils
.
readXml
(
"<alarm><no>0</no><prio>0</prio><arg1>0</arg1><arg2>0</arg2><fileName></fileName></alarm>"
,
CutterbarWarningBase
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
System
.
out
.
println
(
CutterbarWarning
.
convertBase
(
list
.
get
(
0
)));
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment