io.permazen.JFieldSwitch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-main Show documentation
Show all versions of permazen-main Show documentation
Permazen classes that map Java model classes onto the core API.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
/**
* Visitor pattern interface for {@link JField}s.
*
* @param switch method return type
* @see JField#visit
*/
public interface JFieldSwitch {
/**
* Handle a {@link JSetField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJSetField(JSetField field);
/**
* Handle a {@link JListField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJListField(JListField field);
/**
* Handle a {@link JMapField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJMapField(JMapField field);
/**
* Handle a {@link JSimpleField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJSimpleField(JSimpleField field);
/**
* Handle a {@link JReferenceField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJReferenceField(JReferenceField field);
/**
* Handle a {@link JEnumField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJEnumField(JEnumField field);
/**
* Handle a {@link JCounterField}.
*
* @param field the visiting field
* @return visitor return value
*/
R caseJCounterField(JCounterField field);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy