Package de.hybris.bootstrap.typesystem
Class YComposedType.YModelConstructor
java.lang.Object
de.hybris.bootstrap.typesystem.YNameSpaceElement
de.hybris.bootstrap.typesystem.YComposedType.YModelConstructor
- Enclosing class:
- YComposedType
This is a model constructor object.
-
Constructor Summary
ConstructorsConstructorDescriptionYModelConstructor(YComposedType yComposedType, ModelTagListener.ModelDataConstructor signature, YNamespace container) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasSameAttributeQualifier(YComposedType.YModelConstructor cosntructor) Returnstrueif the given YModelConstructor constructor has the same attribute qualifiers (names) as this one.booleanhasSameSignature(YComposedType.YModelConstructor constructor) Returnstrueif the given YModelConstructor constructor has the same used attribute types in the same order as the current one.toString()returns the constructor signature with the composedtype and each attribute qualifier and the attribute typeMethods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, resetCaches, setLoaderInfo, validate
-
Constructor Details
-
YModelConstructor
public YModelConstructor(YComposedType yComposedType, ModelTagListener.ModelDataConstructor signature, YNamespace container)
-
-
Method Details
-
hasSameSignature
Returnstrueif the given YModelConstructor constructor has the same used attribute types in the same order as the current one. This will lead to a compile error!- Parameters:
constructor- another YModelConstructor- Returns:
falseif they are different.
-
hasSameAttributeQualifier
Returnstrueif the given YModelConstructor constructor has the same attribute qualifiers (names) as this one.- Parameters:
cosntructor- another YModelConstructor- Returns:
falseif they are different.
-
toString
returns the constructor signature with the composedtype and each attribute qualifier and the attribute type- Overrides:
toStringin classYNameSpaceElement
-
getLocationOfDefinition
- Returns:
- the information as String where this constructor was defined in the *-items.xml file
-
getConstructorParameters
- Returns:
- a list with YAttributeDescriptor.
-