Package de.hybris.bootstrap.typesystem
Class YRelationEnd
- java.lang.Object
-
- de.hybris.bootstrap.typesystem.YNameSpaceElement
-
- de.hybris.bootstrap.typesystem.YTypeSystemElement
-
- de.hybris.bootstrap.typesystem.YDescriptor
-
- de.hybris.bootstrap.typesystem.YRelationEnd
-
public class YRelationEnd extends YDescriptor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYRelationEnd.Cardinality
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONDITION_QUERYstatic java.lang.StringDEFAULT_POSITION_ATTRIBUTE_SUFFIXstatic java.lang.StringITEM_CUSTOM_ORDERING_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description YRelationEnd(YNamespace container, java.lang.String relationCode, java.lang.String role, java.lang.String typeCode, boolean navigable, boolean isSource)
-
Method Summary
-
Methods inherited from class de.hybris.bootstrap.typesystem.YDescriptor
getModifiers, getQualifier, getTypeCode, isUniqueModifier, redeclare, redeclare, resetCaches, setModifiers, setUniqueModifier, toString
-
Methods inherited from class de.hybris.bootstrap.typesystem.YTypeSystemElement
addCustomProperties, addCustomProperty, getCustomProps, getMetaType, getMetaTypeCode, isAutocreate, isGenerate, setAutocreate, setGenerate, setMetaTypeCode
-
Methods inherited from class de.hybris.bootstrap.typesystem.YNameSpaceElement
getLoaderInfo, getNamespace, getTypeSystem, setLoaderInfo
-
-
-
-
Field Detail
-
ITEM_CUSTOM_ORDERING_ATTRIBUTE
public static final java.lang.String ITEM_CUSTOM_ORDERING_ATTRIBUTE
- See Also:
- Constant Field Values
-
DEFAULT_POSITION_ATTRIBUTE_SUFFIX
public static final java.lang.String DEFAULT_POSITION_ATTRIBUTE_SUFFIX
- See Also:
- Constant Field Values
-
CONDITION_QUERY
public static final java.lang.String CONDITION_QUERY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
YRelationEnd
public YRelationEnd(YNamespace container, java.lang.String relationCode, java.lang.String role, java.lang.String typeCode, boolean navigable, boolean isSource)
-
-
Method Detail
-
getDefaultMetaTypeCode
protected java.lang.String getDefaultMetaTypeCode()
- Specified by:
getDefaultMetaTypeCodein classYTypeSystemElement
-
validate
public void validate()
Description copied from class:YNameSpaceElementValidates the element. This should check whether or not lazy references can be resolved or any data is missing.- Overrides:
validatein classYDescriptor
-
getRole
public java.lang.String getRole()
-
getCardinality
public YRelationEnd.Cardinality getCardinality()
-
setCardinality
public void setCardinality(YRelationEnd.Cardinality card)
-
isSource
public boolean isSource()
-
getRelationCode
public java.lang.String getRelationCode()
-
getRelation
public YRelation getRelation()
-
getType
public YComposedType getType()
- Overrides:
getTypein classYDescriptor
-
getOppositeEnd
public YRelationEnd getOppositeEnd()
-
mappedAttributeDoesntExist
public boolean mappedAttributeDoesntExist()
-
getMappedAttribute
public YAttributeDescriptor getMappedAttribute()
-
getMappedOrderingAttribute
public YAttributeDescriptor getMappedOrderingAttribute()
-
getMappedLocalizationAttribute
public YAttributeDescriptor getMappedLocalizationAttribute()
-
hasConditionQuery
public java.lang.Boolean hasConditionQuery()
-
getConditionQuery
public java.lang.String getConditionQuery()
-
getCollectionType
public YCollectionType.TypeOfCollection getCollectionType()
- Returns:
- the collectionType
-
setCollectionType
public void setCollectionType(YCollectionType.TypeOfCollection collectionType)
- Parameters:
collectionType- the collectionType to set
-
isOrdered
public boolean isOrdered()
- Returns:
- the ordered
-
isNavigable
public boolean isNavigable()
-
setOrdered
public void setOrdered(boolean ordered)
- Parameters:
ordered- the ordered to set
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
setModelData
public void setModelData(ModelTagListener.ModelData modelData)
-
getModelData
public ModelTagListener.ModelData getModelData()
-
-