public MBeanAttributeInfo Deserialize() { bool readable = access.IndexOf('r') != -1; bool writable = access.IndexOf('w') != -1; Descriptor descriptor = GetDescriptorFromFieldValues(); return(new MBeanAttributeInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(type), readable, writable, descriptor)); }
public PropertyModelInfoType(MBeanAttributeInfo attributeInfo) : base(attributeInfo) { access = ""; if (attributeInfo.Readable) { access += "r"; } if (attributeInfo.Writable) { access += "w"; } type = JmxTypeMapping.GetJmxXmlType(attributeInfo.Type); }
public MBeanOperationInfo Deserialize() { OperationImpact impactEnum = OperationImpact.Unknown; if (impact != null && impact.IndexOf('r') != -1) { impactEnum |= OperationImpact.Info; } if (impact != null && impact.IndexOf('w') != -1) { impactEnum |= OperationImpact.Action; } XmlQualifiedName typeQualifiedName = null; if (Output != null) { typeQualifiedName = Output.type; } return(new MBeanOperationInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(typeQualifiedName), Input.EmptyIfNull().Select(x => x.Deserialize()).ToArray(), impactEnum, GetDescriptorFromFieldValues())); }
public object Deserialize() { return(SimpleType.CreateSimpleType(System.Type.GetType(JmxTypeMapping.GetCLRTypeName(Type), true))); }
public OpenDataType_Type(OpenType value) { Name = value.TypeName; Type = JmxTypeMapping.GetJmxXmlType(value.Representation.AssemblyQualifiedName); Description = value.Description; }
public MBeanParameterInfo Deserialize() { return(new MBeanParameterInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(type), GetDescriptorFromFieldValues())); }
public ParameterModelInfoType(MBeanParameterInfo parameterInfo) : base(parameterInfo) { type = JmxTypeMapping.GetJmxXmlType(parameterInfo.Type); }
public ParameterModelInfoType(string typeName) { type = JmxTypeMapping.GetJmxXmlType(typeName); }