public static TemporaryStructuredDataType create(String name) { return new TemporaryStructuredDataType(name); }
final public TemporaryStructuredDataType referenceType() throws ParseException {String documentName; documentName = identifier(); {if ("" != null) return TemporaryStructuredDataType.create(documentName);} throw new IllegalStateException ("Missing return statement in function"); }
private static void registerReferenceType(DocumentTypeManager manager, int id, DocumentmanagerConfig.Datatype.Referencetype refType) { ReferenceDataType referenceType; if (manager.hasDataType(refType.target_type_id())) { DocumentType targetDocType = (DocumentType)manager.getDataType(refType.target_type_id()); referenceType = new ReferenceDataType(targetDocType, id); } else { TemporaryStructuredDataType temporaryTargetType = TemporaryStructuredDataType.createById(refType.target_type_id()); referenceType = new ReferenceDataType(temporaryTargetType, id); } // Note: can't combine the above new-statements, as they call different constructors. manager.register(referenceType); }
DataType stype = sdtype != null ? sdtype.getStruct() : TemporaryStructuredDataType.create(struct.getName()); struct.setStruct(stype); {if ("" != null) return struct;}
public static TemporaryStructuredDataType createById(int id) { return new TemporaryStructuredDataType(id); }
type = TemporaryStructuredDataType.create(typeName);