/** * Returns Text (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getText() { return getTyped(1, ST.class); }
/** * Creates a new CWE type */ public CWE(Message message) { super(message); init(); }
private void init() { data = new Type[9]; data[0] = new ST(getMessage()); data[1] = new ST(getMessage()); data[2] = new ID(getMessage(), 396); data[3] = new ST(getMessage()); data[4] = new ST(getMessage()); data[5] = new ID(getMessage(), 396); data[6] = new ST(getMessage()); data[7] = new ST(getMessage()); data[8] = new ST(getMessage()); }
/** {@inheritDoc} */ protected Type createNewTypeWithoutReflection(int field) { switch (field) { case 0: return new CWE(getMessage()); case 1: return new CWE(getMessage()); case 2: return new CWE(getMessage()); case 3: return new CWE(getMessage()); case 4: return new CWE(getMessage()); case 5: return new CWE(getMessage()); default: return null; } }
private void init() { data = new Type[9]; data[0] = new ST(getMessage()); data[1] = new ST(getMessage()); data[2] = new ID(getMessage(), 396); data[3] = new ST(getMessage()); data[4] = new ST(getMessage()); data[5] = new ID(getMessage(), 396); data[6] = new ST(getMessage()); data[7] = new ST(getMessage()); data[8] = new ST(getMessage()); }
/** * Returns Alternate Identifier (component 4). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCwe4_AlternateIdentifier() { return getTyped(3, ST.class); }
/** * Creates a new CWE type */ public CWE(Message message) { super(message); init(); }
/** * Returns Alternate Text (component 5). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCwe5_AlternateText() { return getTyped(4, ST.class); }
/** * Returns Coding System Version ID (component 7). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCwe7_CodingSystemVersionID() { return getTyped(6, ST.class); }
/** * Returns Original Text (component 9). This is a convenience method that saves you from * casting and handling an exception. */ public ST getOriginalText() { return getTyped(8, ST.class); }
/** * Returns Identifier (component 1). This is a convenience method that saves you from * casting and handling an exception. */ public ST getIdentifier() { return getTyped(0, ST.class); }
/** * Returns Text (component 2). This is a convenience method that saves you from * casting and handling an exception. */ public ST getCwe2_Text() { return getTyped(1, ST.class); }