public class SchemaInterface extends java.lang.Object implements SchemaInterfaceI
This class stores the details of a parsed schema interface, including its name, attributes, and the corresponding XML element. It offers functionality to validate the interface definition and access its components.
ATT_NAME_CODE_CUSTOM, ATT_NAME_NAME, CUSTOM_CODE_BASE_NAME, EL_NAME_CODE, EL_NAME_EXTENDS, REQUIRED_NAME_SUFFIX| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Collection<? extends BasicAttributeI> |
getAllAttributes() |
java.util.Collection<electric.xml.Element> |
getAllXMLElements()
Returns a collection of XML elements representing the attributes defined in this interface,
and all schema-defined super interfaces of this interface.
|
java.util.Collection<? extends BasicAttributeI> |
getAttributes() |
electric.xml.Element |
getEl()
Returns the XML element that defines this schema interface.
|
java.util.Set<java.lang.String> |
getExtends()
Returns the names of one or more parent interfaces as a set of fully qualified class names
|
java.lang.String |
getName()
Returns the name of this SchemaInterfaceI instance.
|
electric.xml.Element |
getOriginalEl()
Returns a copy of the original XML element that defined this schema interface.
|
java.lang.String |
getPackageName()
Returns the name of the package this interface belongs into.
|
SchemaI |
getSchema()
Returns the schema to which this interface belongs.
|
java.util.Collection<electric.xml.Element> |
getXMLElements()
Returns a collection of XML elements representing the attributes defined in this interface.
|
boolean |
hasCustomCode()
if true, we may expect a custom-written interface class to be present for the interface of this name,
and the code generator will create a "basic" interface the custom interface may inherit from.
|
int |
hashCode() |
void |
resolveCrossReferences()
attempts to resolve cross references to other entities or interfaces from this interface via the schema.
|
java.lang.String |
toString() |
getFQClassName, getSourceFilename, parametersToStringpublic void resolveCrossReferences()
public electric.xml.Element getEl()
public electric.xml.Element getOriginalEl()
public SchemaI getSchema()
getSchema in interface SchemaInterfaceIpublic java.util.Set<java.lang.String> getExtends()
SchemaInterfaceIgetExtends in interface SchemaInterfaceIpublic boolean hasCustomCode()
SchemaInterfaceIhasCustomCode in interface SchemaInterfaceIpublic java.lang.String getName()
SchemaInterfaceICan also be used for querying objects in OQL queries that implement this interface.
getName in interface SchemaInterfaceIpublic java.lang.String getPackageName()
SchemaInterfaceIgetPackageName in interface SchemaInterfaceIpublic java.util.Collection<electric.xml.Element> getXMLElements()
SchemaInterfaceIgetXMLElements in interface SchemaInterfaceIpublic java.util.Collection<electric.xml.Element> getAllXMLElements()
SchemaInterfaceIgetAllXMLElements in interface SchemaInterfaceIpublic java.util.Collection<? extends BasicAttributeI> getAttributes()
getAttributes in interface SchemaInterfaceIpublic java.util.Collection<? extends BasicAttributeI> getAllAttributes()
getAllAttributes in interface SchemaInterfaceIpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.