
templates.class.t.attributeaccessor.empty Maven / Gradle / Ivy
.if ( is_getter )
public ${type_name} ${name}() throws XtumlException {
throw new EmptyInstanceException( "Cannot get attribute of empty instance." );
}
.else
public void ${name}( ${type_name} ${self.attribute_name} ) throws XtumlException {
throw new EmptyInstanceException( "Cannot set attribute of empty instance." );
}
.end if
© 2015 - 2025 Weber Informatics LLC | Privacy Policy