// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java Project project = new Project(projectName); for (OutlineCodeDefinition ocd : project.getOutlineCodes()) { System.out.println("Alias = " + ocd.getAlias()); if (ocd.getAllLevelsRequired()) { System.out.println("It contains property: must have all levels"); } else { System.out.println("It does not contain property: must have all levels"); } if (ocd.getEnterprise()) { System.out.println("It is an enterprise custom outline code."); } else { System.out.println("It is not an enterprise custom outline code."); } System.out.println( "Reference to another custom field for which this outline code definition is an alias is = " + ocd.getEnterpriseOutlineCodeAlias()); System.out.println("Field Id = " + ocd.getFieldId()); System.out.println("Field Name = " + ocd.getFieldName()); System.out.println("Phonetic Alias = " + ocd.getPhoneticAlias()); System.out.println("Guid = " + ocd.getGuid()); // Display outline code masks for (OutlineMask m1 : ocd.getMasks()) { System.out.println("Level of a mask = " + m1.getLevel()); System.out.println("Mask = " + m1.toString()); } // Display out line code values for (OutlineValue v1 : ocd.getValues()) { System.out.println("Description of outline value = " + v1.getDescription()); System.out.println("Value Id = " + v1.getValueId()); System.out.println("Value = " + v1.getValue()); System.out.println("Type = " + v1.getType()); } }