Exemplo n.º 1
0
 /// <summary>
 /// CategoryType class constructor
 /// </summary>
 public CategoryType()
 {
     Content_History   = new ContentHistoryType();
     Notes             = new List <NotesTypeNote>();
     References        = new List <ReferencesTypeReference>();
     Taxonomy_Mappings = new List <TaxonomyMappingsTypeTaxonomy_Mapping>();
     Relationships     = new RelationshipsType();
     Summary           = new StructuredTextType();
 }
Exemplo n.º 2
0
 /// <summary>
 /// ViewType class constructor
 /// </summary>
 public ViewType()
 {
     Content_History = new ContentHistoryType();
     Notes           = new List <NotesTypeNote>();
     References      = new List <ReferencesTypeReference>();
     Members         = new RelationshipsType();
     Audience        = new List <AudienceTypeStakeholder>();
     Objective       = new StructuredTextType();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Deserializes xml markup from file into an ContentHistoryType object
 /// </summary>
 /// <param name="fileName">string xml file to load and deserialize</param>
 /// <param name="obj">Output ContentHistoryType object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
 public static bool LoadFromFile(string fileName, out ContentHistoryType obj, out Exception exception)
 {
     exception = null;
     obj       = default(ContentHistoryType);
     try
     {
         obj = LoadFromFile(fileName);
         return(true);
     }
     catch (Exception ex)
     {
         exception = ex;
         return(false);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Deserializes ContentHistoryType object
 /// </summary>
 /// <param name="input">string workflow markup to deserialize</param>
 /// <param name="obj">Output ContentHistoryType object</param>
 /// <param name="exception">output Exception value if deserialize failed</param>
 /// <returns>true if this Serializer can deserialize the object; otherwise, false</returns>
 public static bool Deserialize(string input, out ContentHistoryType obj, out Exception exception)
 {
     exception = null;
     obj       = default(ContentHistoryType);
     try
     {
         obj = Deserialize(input);
         return(true);
     }
     catch (Exception ex)
     {
         exception = ex;
         return(false);
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// AttackPatternType class constructor
 /// </summary>
 public AttackPatternType()
 {
     Content_History         = new ContentHistoryType();
     Notes                   = new List <NotesTypeNote>();
     References              = new List <ReferencesTypeReference>();
     Taxonomy_Mappings       = new List <TaxonomyMappingsTypeTaxonomy_Mapping>();
     Related_Weaknesses      = new List <RelatedWeaknessesTypeRelated_Weakness>();
     Example_Instances       = new List <StructuredTextType>();
     Mitigations             = new List <StructuredTextType>();
     Consequences            = new List <ConsequencesTypeConsequence>();
     Indicators              = new List <StructuredTextType>();
     Resources_Required      = new List <StructuredTextType>();
     Skills_Required         = new List <SkillsTypeSkill>();
     Prerequisites           = new List <StructuredTextType>();
     Execution_Flow          = new List <ExecutionFlowTypeAttack_Step>();
     Related_Attack_Patterns = new List <RelatedAttackPatternTypeRelated_Attack_Pattern>();
     Alternate_Terms         = new List <AlternateTermsTypeAlternate_Term>();
     Description             = new StructuredTextType();
 }
Exemplo n.º 6
0
        public static bool LoadFromFile(string fileName, out ContentHistoryType obj)
        {
            Exception exception = null;

            return(LoadFromFile(fileName, out obj, out exception));
        }
Exemplo n.º 7
0
        public static bool Deserialize(string input, out ContentHistoryType obj)
        {
            Exception exception = null;

            return(Deserialize(input, out obj, out exception));
        }