Last change
on this file since 507 was 507, checked in by George Lilly, 15 years ago |
NHIN gateway and adaptor for use on linux with VistA EHR and RPMS
|
File size:
845 bytes
|
Rev | Line | |
---|
[507] | 1 | /*
|
---|
| 2 | * To change this template, choose Tools | Templates
|
---|
| 3 | * and open the template in the editor.
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | package gov.hhs.fha.nhinc.gateway.policyenginetransformation.Helpers;
|
---|
| 7 |
|
---|
| 8 | import oasis.names.tc.xacml._2_0.context.schema.os.AttributeType;
|
---|
| 9 | import oasis.names.tc.xacml._2_0.context.schema.os.AttributeValueType;
|
---|
| 10 |
|
---|
| 11 | /**
|
---|
| 12 | *
|
---|
| 13 | * @author rayj
|
---|
| 14 | */
|
---|
| 15 | public class AttributeHelper {
|
---|
| 16 | public static AttributeType attributeFactory(String attributeId, String dataType, String attributeValue) {
|
---|
| 17 | AttributeType attribute = new AttributeType();
|
---|
| 18 | attribute.setAttributeId(attributeId);
|
---|
| 19 | attribute.setDataType(dataType);
|
---|
| 20 |
|
---|
| 21 | AttributeValueType atttibuteValue = new AttributeValueType();
|
---|
| 22 | atttibuteValue.getContent().add(attributeValue);
|
---|
| 23 | attribute.getAttributeValue().add(atttibuteValue);
|
---|
| 24 |
|
---|
| 25 | return attribute;
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.