Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<unmarshall node="desk" class="net.officefloor.model.desk.DeskModel">
	<!-- EXTERNAL MANAGED OBJECTS -->
	<object method="addExternalManagedObject" node="external-managed-object"
		class="net.officefloor.model.desk.ExternalManagedObjectModel">
		<value method="setExternalManagedObjectName" node="external-managed-object@name" />
		<value method="setObjectType" node="external-managed-object@object-type" />
		<value method="setX" node="external-managed-object@x" />
		<value method="setY" node="external-managed-object@y" />
	</object>
	<!-- MANAGED OBJECT SOURCES -->
	<object method="addDeskManagedObjectSource" node="managed-object-source"
		class="net.officefloor.model.desk.DeskManagedObjectSourceModel">
		<value method="setDeskManagedObjectSourceName" node="managed-object-source@name" />
		<value method="setManagedObjectSourceClassName" node="managed-object-source@source" />
		<value method="setObjectType" node="managed-object-source@object-type" />
		<value method="setTimeout" node="managed-object-source@timeout" />
		<value method="setX" node="managed-object-source@x" />
		<value method="setY" node="managed-object-source@y" />
		<object method="addProperty" node="property"
			class="net.officefloor.model.desk.PropertyModel">
			<value method="setName" node="property@name" />
			<value method="setValue" node="property@value" />
		</object>
		<object method="addDeskManagedObjectSourceFlow" node="flow"
			class="net.officefloor.model.desk.DeskManagedObjectSourceFlowModel">
			<value method="setDeskManagedObjectSourceFlowName" node="flow@name" />
			<value method="setArgumentType" node="flow@argument-type" />
			<object method="setExternalFlow" node="external-flow"
				class="net.officefloor.model.desk.DeskManagedObjectSourceFlowToExternalFlowModel">
				<value method="setExternalFlowName" node="external-flow@name" />
			</object>
			<object method="setTask" node="task"
				class="net.officefloor.model.desk.DeskManagedObjectSourceFlowToTaskModel">
				<value method="setTaskName" node="task@name" />
			</object>
		</object>
	</object>
	<!-- MANAGED_OBJECTS -->
	<object method="addDeskManagedObject" node="managed-object"
		class="net.officefloor.model.desk.DeskManagedObjectModel">
		<value method="setDeskManagedObjectName" node="managed-object@name" />
		<value method="setManagedObjectScope" node="managed-object@scope" />
		<value method="setX" node="managed-object@x" />
		<value method="setY" node="managed-object@y" />
		<object method="setDeskManagedObjectSource" node="managed-object-source"
			class="net.officefloor.model.desk.DeskManagedObjectToDeskManagedObjectSourceModel">
			<value method="setDeskManagedObjectSourceName" node="managed-object-source@name" />
		</object>
		<object method="addDeskManagedObjectDependency" node="dependency"
			class="net.officefloor.model.desk.DeskManagedObjectDependencyModel">
			<value method="setDeskManagedObjectDependencyName" node="dependency@name" />
			<value method="setDependencyType" node="dependency@object-type" />
			<object method="setExternalManagedObject" node="external-managed-object"
				class="net.officefloor.model.desk.DeskManagedObjectDependencyToExternalManagedObjectModel">
				<value method="setExternalManagedObjectName" node="external-managed-object@name" />
			</object>
			<object method="setDeskManagedObject" node="managed-object"
				class="net.officefloor.model.desk.DeskManagedObjectDependencyToDeskManagedObjectModel">
				<value method="setDeskManagedObjectName" node="managed-object@name" />
			</object>
		</object>
	</object>
	<!-- EXTERNAL FLOWS -->
	<object method="addExternalFlow" node="external-flow"
		class="net.officefloor.model.desk.ExternalFlowModel">
		<value method="setExternalFlowName" node="external-flow@name" />
		<value method="setArgumentType" node="external-flow@argument-type" />
		<value method="setX" node="external-flow@x" />
		<value method="setY" node="external-flow@y" />
	</object>
	<!-- WORKS -->
	<object method="addWork" node="work"
		class="net.officefloor.model.desk.WorkModel">
		<value method="setWorkName" node="work@name" />
		<value method="setWorkSourceClassName" node="work@source" />
		<value method="setX" node="work@x" />
		<value method="setY" node="work@y" />
		<object method="addProperty" node="property"
			class="net.officefloor.model.desk.PropertyModel">
			<value method="setName" node="property@name" />
			<value method="setValue" node="property@value" />
		</object>
		<object method="setInitialTask" node="initial-task"
			class="net.officefloor.model.desk.WorkToInitialTaskModel">
			<value method="setInitialTaskName" node="initial-task@name" />
		</object>
		<object method="addWorkTask" node="work-task"
			class="net.officefloor.model.desk.WorkTaskModel">
			<value method="setWorkTaskName" node="work-task@name" />
			<object method="addTaskObject" node="task-object"
				class="net.officefloor.model.desk.WorkTaskObjectModel">
				<value method="setObjectName" node="task-object@name" />
				<value method="setKey" node="task-object@key" />
				<value method="setObjectType" node="task-object@object-type" />
				<value method="setIsParameter" node="task-object@parameter" />
				<object method="setExternalManagedObject" node="external-managed-object"
					class="net.officefloor.model.desk.WorkTaskObjectToExternalManagedObjectModel">
					<value method="setExternalManagedObjectName" node="external-managed-object@name" />
				</object>
				<object method="setDeskManagedObject" node="managed-object"
					class="net.officefloor.model.desk.WorkTaskObjectToDeskManagedObjectModel">
					<value method="setDeskManagedObjectName" node="managed-object@name" />
				</object>
			</object>
		</object>
	</object>
	<!-- TASKS -->
	<object method="addTask" node="task"
		class="net.officefloor.model.desk.TaskModel">
		<value method="setTaskName" node="task@name" />
		<value method="setIsPublic" node="task@public" />
		<value method="setWorkName" node="task@work" />
		<value method="setWorkTaskName" node="task@task" />
		<value method="setReturnType" node="task@return-type" />
		<value method="setX" node="task@x" />
		<value method="setY" node="task@y" />
		<object method="addTaskFlow" node="task-flow"
			class="net.officefloor.model.desk.TaskFlowModel">
			<value method="setFlowName" node="task-flow@name" />
			<value method="setKey" node="task-flow@key" />
			<value method="setArgumentType" node="task-flow@argument-type" />
			<object method="setExternalFlow" node="external-flow"
				class="net.officefloor.model.desk.TaskFlowToExternalFlowModel">
				<value method="setExternalFlowName" node="external-flow@name" />
				<value method="setLinkType" node="external-flow@link" />
			</object>
			<object method="setTask" node="task"
				class="net.officefloor.model.desk.TaskFlowToTaskModel">
				<value method="setTaskName" node="task@name" />
				<value method="setLinkType" node="task@link" />
			</object>
		</object>
		<object method="setNextTask" node="next-task"
			class="net.officefloor.model.desk.TaskToNextTaskModel">
			<value method="setNextTaskName" node="next-task@name" />
		</object>
		<object method="setNextExternalFlow" node="next-external-flow"
			class="net.officefloor.model.desk.TaskToNextExternalFlowModel">
			<value method="setExternalFlowName" node="next-external-flow@name" />
		</object>
		<object method="addTaskEscalation" node="task-escalation"
			class="net.officefloor.model.desk.TaskEscalationModel">
			<value method="setEscalationType" node="task-escalation@escalation-type" />
			<object method="setTask" node="task"
				class="net.officefloor.model.desk.TaskEscalationToTaskModel">
				<value method="setTaskName" node="task@name" />
			</object>
			<object method="setExternalFlow" node="external-flow"
				class="net.officefloor.model.desk.TaskEscalationToExternalFlowModel">
				<value method="setExternalFlowName" node="external-flow@name" />
			</object>
		</object>
	</object>
</unmarshall>
New to GrepCode? Check out our FAQ X