blob: 81edc53da59d8c886498c1119b5fd9cc788f402e [file] [log] [blame]
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
package org.apache.plc4x.plugins.codegenerator.types.definitions;
import org.apache.plc4x.plugins.codegenerator.types.fields.ConstField;
import org.apache.plc4x.plugins.codegenerator.types.fields.Field;
import org.apache.plc4x.plugins.codegenerator.types.fields.PropertyField;
import org.apache.plc4x.plugins.codegenerator.types.fields.SimpleField;
import java.util.List;
public interface ComplexTypeDefinition extends TypeDefinition {
boolean isAbstract();
/**
* Get all fields no matter the type.
*
* @return all fields ;-)
*/
List<Field> getFields();
/**
* Get only the fields which are of type SimpleField.
*
* @return all simple fields ;-)
*/
List<SimpleField> getSimpleFields();
/**
* Get only the fields which are of type ConstField.
*
* @return all constant fields ;-)
*/
List<ConstField> getConstFields();
/**
* Get only the fields which are of type SimpleField or OptionalField.
*
* @return all simple and optional fields ;-)
*/
List<PropertyField> getPropertyFields();
/**
* In contrast to getFields, this also gets all property fields of any parent type.
*
* @return all simple fields including any parents simple fields
*/
List<PropertyField> getAllPropertyFields();
/**
* Returns all protery fields defined by any parent type.
*
* @return all parent types simple fields.
*/
List<PropertyField> getParentPropertyFields();
}