%SAML.AttributeValue
Class %SAML.AttributeValue Extends (%RegisteredObject, %XML.Adaptor) [ Inheritance = right, System = 4 ]
AttributeValue This class allows string value, XML content or instance of subclass of %SAML.AttributeValueAbstract. The structure of this class reflects that we do not have a mapping for xs:anyType.
Parameters
XMLFORMAT
Parameter XMLFORMAT = "literal";
NAMESPACE
Parameter NAMESPACE = "urn:oasis:names:tc:SAML:2.0:assertion";
ELEMENTQUALIFIED
Parameter ELEMENTQUALIFIED = 0;
Properties
value
Property value As %XML.String(MAXLEN = "", XMLPROJECTION = "content") [ Internal, Private ];
Set any string value as the attribute.
type
Property type As %String(REFNAMESPACE = "http://www.w3.org/2001/XMLSchema-instance", XMLPROJECTION = "xattribute", XMLREF = 1) [ Internal, Private ];
Dummy property to introduce xsi:type attribute
element
Property element As %SAML.AttributeValueElement(XMLPROJECTION = "element", XMLREF = 1, XMLTYPECONSTRAINT = "choice") [ Internal, Private ];
Subclasses of %SAML.AttributeValueElement can be used as values which are an element as a child of AttributeValue.
Methods
SetXML
Method SetXML(xml As %String)
Set AttributeValue as XML content
SetString
Method SetString(string As %String)
Set AttributeValue as a xs:string
SetElement
Method SetElement(element As %SAML.AttributeValueElement)
Set AttributeValue as a child element which maps to a subclass of %SAML.AttributeValueElement.
GetXML
Method GetXML() As %String
Get content of AttributeValue as XML.
IsString
Method IsString() As %Boolean
Return true if content of AttributeValue is a string.
GetString
Method GetString() As %String
Get content of AttributeValue as a xs:string.
IsElement
Method IsElement() As %Boolean
Return true if content of AttributeValue is a child element which maps to a subclass of %SAML.AttributeValueElement.
GetElement
Method GetElement() As %SAML.AttributeValueElement
Get content of AttributeValue as a xs:string.