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
public static class YComposedType.YModelConstructor extends YNameSpaceElement
This is a model constructor object.
-
-
Constructor Summary
Constructors Constructor Description YModelConstructor(YComposedType yComposedType, ModelTagListener.ModelDataConstructor signature, YNamespace container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<YAttributeDescriptor>getConstructorParameters()java.lang.StringgetLocationOfDefinition()booleanhasSameAttributeQualifier(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.java.lang.StringtoString()returns the constructor signature with the composedtype and each attribute qualifier and the attribute type-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, resetCaches, setLoaderInfo, validate
-
-
-
-
Constructor Detail
-
YModelConstructor
public YModelConstructor(YComposedType yComposedType, ModelTagListener.ModelDataConstructor signature, YNamespace container)
-
-
Method Detail
-
hasSameSignature
public boolean hasSameSignature(YComposedType.YModelConstructor constructor)
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
public boolean hasSameAttributeQualifier(YComposedType.YModelConstructor cosntructor)
Returnstrueif the given YModelConstructor constructor has the same attribute qualifiers (names) as this one.- Parameters:
cosntructor- another YModelConstructor- Returns:
falseif they are different.
-
toString
public java.lang.String toString()
returns the constructor signature with the composedtype and each attribute qualifier and the attribute type- Overrides:
toStringin classYNameSpaceElement
-
getLocationOfDefinition
public java.lang.String getLocationOfDefinition()
- Returns:
- the information as String where this constructor was defined in the *-items.xml file
-
getConstructorParameters
public java.util.List<YAttributeDescriptor> getConstructorParameters()
- Returns:
- a list with YAttributeDescriptor.
-
-