Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7891605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:39:40+00:00 2026-06-03T06:39:40+00:00

I want to parse idKeys1 and get the Attribute ID(Pds AttributeId) and Attribute Value(value)

  • 0

I want to parse idKeys1 and get the Attribute ID(Pds AttributeId) and Attribute Value(value) from idKeys1. I am not sure what’s the best way to parse it as it’s a list of PDSAttribute.

List<PdsAttribute> idKeys1 = m_pdssmartclient.release(PersistenceEnum.COMMIT, false);
Iterator<PdsAttribute> i = idKeys1.iterator();
  while (i.hasNext()) {
                    String parse = String.valueOf(i.next());
                    System.out.println(i.next());
                      }

Sample Output of idKeys1 is:-

[Pds Attribute: 
Pds AttributeId = 20000
value = 0
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 20002
value = -1
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 20004
value = -9223372036854775808
Attribute Status = 
Status Code = 0
Status = SUCCESS
Status message = null

, Pds Attribute: 
Pds AttributeId = 248
value = 1906e3551370af60d5b48854fffffffe
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 330
value = null
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 202
value = 1906e1611370af60d5b48854ffffffff
Attribute Status = 
Status Code = 0
Status = SUCCESS
Status message = null

, Pds Attribute: 
Pds AttributeId = 331
value = null
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 347
value = 1906e5a11370af60d5b48854fffffffd
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 332
value = 4fa813bc.0.1.8.9.5.0.1
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 12
value = 1002491107
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

, Pds Attribute: 
Pds AttributeId = 333
value = 4fa813bc.0.1.7.8.0.0.1
Attribute Status = 
Status Code = 0
Status = NOT_PROCESSED
Status message = null

]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T06:39:42+00:00Added an answer on June 3, 2026 at 6:39 am

    So whats wrong with

            while (i.hasNext()) {
                PdsAttribute attr = (PdsAttribute) (i.next());
                String attrId = String.valueOf(attr.getAttributeId);
                String attrValue = String.valueOf(attr.getValue());
            }
    

    This of course, assumes you have appropriate accessors for the PdsAttributeId and value in your PdsAttribute class. If it doesn’t, you should really consider adding some to encapsulate its members.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to parse the following xml and get the value of metadata:description using
I want to parse the input string and extract the values from it. My
I want to parse the tabular information from a .pdf file,and want to display
i want parse null value and disable checkbox in form view how can i
I get a longString from object's onclick value var longString = String(this.onclick); output like
I want to parse a JSON file in java and get the following values
I want to parse Google News RSS with PHP, to get actual links of
I want to parse the addresses from the JSON response (http://maps.googleapis.com/maps/api/geocode/json?address=public+library+san+diego&sensor=false) received from Geocoding
I want to parse data from a log file, pump it into a database,
I want to parse this RSS (from a bit.ly user stream) to grab all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.