public class ModelElement extends Object
| Constructor and Description |
|---|
ModelElement(ModelElement parent,
ParserContext parserContext,
String type) |
ModelElement(ModelElement parent,
ParserContext parserContext,
String type,
String name) |
public ModelElement(ModelElement parent, ParserContext parserContext, String type)
public ModelElement(ModelElement parent, ParserContext parserContext, String type, String name)
public ModelElement getBaseSchema()
public ModelElement getComponent()
public ModelElement getElementSchema()
public ModelElement getElementComponent()
public boolean getIsArraySchema()
public boolean getIsObjectSchema()
public Model getModel()
public String getName()
public String getCamelName()
public String getCamelCapitalizedName()
public String getSnakeName()
public String getSnakeCapitalizedName()
public String getSummary()
public String getDescription()
public String getFormat()
public boolean getHasSet()
public boolean getHasList()
public boolean getHasCollections()
public boolean getHasByteString()
public boolean getIsComponent()
public boolean getIsTypeDef()
public boolean getIsObjectType()
public boolean getIsGenerateFacade()
public boolean getIsGenerateBuilderFacade()
public ModelElement getReference()
public EnumSchema getEnum()
public Set<AbstractSchema> getReferencedTypes()
protected void getReferencedTypes(Set<AbstractSchema> result)
public Set<AbstractSchema> getSchemas()
protected void getSchemas(Set<AbstractSchema> result)
public void resolve()
public void validate()
public void add(ModelElement e)
public ModelElement getParent()
public ParserContext getContext()
public String getElementType()
public List<ModelElement> getChildren()
public List<ModelElement> getFields()
public void generate(GenerationContext generationContext, Map<String,Object> dataModel) throws GenerationException
GenerationExceptionprotected void generateChildren(GenerationContext generationContext, Map<String,Object> dataModel) throws GenerationException
GenerationExceptionprotected void add(String name, ModelElement element)
public ModelElement getByPath(String[] pathNames, int index)
public boolean getCanFailValidation()
Copyright © 2018 Symphony Software Foundation. All rights reserved.