mace-opensaml-users - Re: AttributeValue creation
Subject: OpenSAML user discussion
List archive
- From: Subash Devkota <>
- To:
- Subject: Re: AttributeValue creation
- Date: Fri, 02 Feb 2007 12:22:57 +0545
- Organization: D2Hawkeye
Thank You Chad for your detail reply. I created the AttributeValue Object but could not find the way for setting values in it. I am sorry for bothering you again. But, I am new to openSAML and could not find any good document for the help. Could you please refer if any. I created the AttribueValue using the code: XSStringBuilder xsStringBuilder= new XSStringBuilder();//) builderFactory.getBuilder(AttributeValue.DEFAULT_ELEMENT_NAME); XMLObject attributeValue=xsStringBuilder.buildObject(AttributeValue.DEFAULT_ELEMENT_NAME, XSString.TYPE_NAME); It created the xml: <saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string"/> Then this attributeValue object does not have any method to set its value. It has only to set methods: setDOM() and setParent(). I don't think setting DOM is the good solution. Is there any way of adding the value to AttributeValue? Thank You Subash Chad La Joie wrote: No, you don't have to use the default provider (and probably shouldn't) in order to create attribute values. Instead you'd get the builder for whatever you want to use as an attribute value and build it using the element name AttributeValue. So, for example, lets say you wanted to have a value that is a string. Get the builder for the XSString object (our XMLObject that models the XML schema string type). Then, instead of using the normal buildObject method use one of the ones that takes both the element name AND the schema type, for example buildObject(QName, QName), passing in the AttributeValue qname for the first argument and the XSString type for the second. |
- AttributeValue creation, Subash Devkota, 02/01/2007
- Re: AttributeValue creation, Chad La Joie, 02/01/2007
- Re: AttributeValue creation, Subash Devkota, 02/02/2007
- Re: AttributeValue creation, Chad La Joie, 02/02/2007
- Re: AttributeValue creation, Subash Devkota, 02/02/2007
- Re: AttributeValue creation, Chad La Joie, 02/02/2007
- Re: AttributeValue creation, Subash Devkota, 02/02/2007
- Re: AttributeValue creation, Chad La Joie, 02/02/2007
- Re: AttributeValue creation, Subash Devkota, 02/02/2007
- Re: AttributeValue creation, Chad La Joie, 02/01/2007
Archive powered by MHonArc 2.6.16.