Cosmetic changes to visitor argument names to align them with naming conventions used elsewhere in the admin framework.
| | |
| | | |
| | | |
| | | /** |
| | | * Visit a dseecompat Global ACI property definition. |
| | | * |
| | | * @param pd |
| | | * The Global ACI property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitACI(ACIPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Visit an aggregation property definition. |
| | | * |
| | | * @param <C> |
| | |
| | | * @param <S> |
| | | * The type of server managed object configuration that |
| | | * this aggregation property definition refers to. |
| | | * @param d |
| | | * @param pd |
| | | * The aggregation property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public <C extends ConfigurationClient, S extends Configuration> |
| | | R visitAggregation(AggregationPropertyDefinition<C, S> d, P p) { |
| | | return visitUnknown(d, p); |
| | | R visitAggregation(AggregationPropertyDefinition<C, S> pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit an attribute type property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The attribute type property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitAttributeType(AttributeTypePropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitAttributeType(AttributeTypePropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a boolean property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The boolean property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitBoolean(BooleanPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitBoolean(BooleanPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a class property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The class property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitClass(ClassPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitClass(ClassPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a DN property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The DN property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitDN(DNPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitDN(DNPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a duration property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The duration property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitDuration(DurationPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitDuration(DurationPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | * @param <E> |
| | | * The enumeration that should be used for values of the |
| | | * property definition. |
| | | * @param d |
| | | * @param pd |
| | | * The enumeration property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public <E extends Enum<E>> R visitEnum(EnumPropertyDefinition<E> d, P p) { |
| | | return visitUnknown(d, p); |
| | | public <E extends Enum<E>> R visitEnum(EnumPropertyDefinition<E> pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit an integer property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The integer property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitInteger(IntegerPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitInteger(IntegerPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a IP address property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The IP address property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitIPAddress(IPAddressPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitIPAddress(IPAddressPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a IP address mask property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The IP address mask property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitIPAddressMask(IPAddressMaskPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Visit a dseecompat Global ACI property definition. |
| | | * |
| | | * @param d |
| | | * The Global ACI property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitACI(ACIPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitIPAddressMask(IPAddressMaskPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Visit a size property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The size property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitSize(SizePropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitSize(SizePropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a string property definition. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The string property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitString(StringPropertyDefinition d, P p) { |
| | | return visitUnknown(d, p); |
| | | public R visitString(StringPropertyDefinition pd, P p) { |
| | | return visitUnknown(pd, p); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @param <T> |
| | | * The type of the underlying property. |
| | | * @param d |
| | | * @param pd |
| | | * The property definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | |
| | | * Visitor implementations may optionally throw this |
| | | * exception. |
| | | */ |
| | | public <T> R visitUnknown(PropertyDefinition<T> d, P p) |
| | | public <T> R visitUnknown(PropertyDefinition<T> pd, P p) |
| | | throws UnknownPropertyDefinitionException { |
| | | throw new UnknownPropertyDefinitionException(d, p); |
| | | throw new UnknownPropertyDefinitionException(pd, p); |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | |
| | | /** |
| | | * Visit a dseecompat ACI. |
| | | * |
| | | * @param pd |
| | | * The dseecompat ACI property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitACI(ACIPropertyDefinition pd, Aci v, |
| | | P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Visit an aggregation property value. |
| | | * |
| | | * @param <C> |
| | |
| | | * @param <S> |
| | | * The type of server managed object configuration that |
| | | * this aggregation property definition refers to. |
| | | * @param d |
| | | * @param pd |
| | | * The aggregation property definition to visit. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | */ |
| | | public <C extends ConfigurationClient, S extends Configuration> |
| | | R visitAggregation( |
| | | AggregationPropertyDefinition<C, S> d, String v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | AggregationPropertyDefinition<C, S> pd, String v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit an attribute type. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The attribute type property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitAttributeType(AttributeTypePropertyDefinition d, |
| | | public R visitAttributeType(AttributeTypePropertyDefinition pd, |
| | | AttributeType v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a boolean. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The boolean property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitBoolean(BooleanPropertyDefinition d, Boolean v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitBoolean(BooleanPropertyDefinition pd, Boolean v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a class. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The class property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitClass(ClassPropertyDefinition d, String v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitClass(ClassPropertyDefinition pd, String v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a DN. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The DN property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitDN(DNPropertyDefinition d, DN v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitDN(DNPropertyDefinition pd, DN v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a duration. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The duration property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitDuration(DurationPropertyDefinition d, Long v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitDuration(DurationPropertyDefinition pd, Long v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | * @param <E> |
| | | * The enumeration that should be used for values of the |
| | | * property definition. |
| | | * @param pd |
| | | * The enumeration property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | | * @param d |
| | | * The enumeration property definition. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public <E extends Enum<E>> |
| | | R visitEnum(EnumPropertyDefinition<E> d, E v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | R visitEnum(EnumPropertyDefinition<E> pd, E v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit an integer. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The integer property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitInteger(IntegerPropertyDefinition d, Integer v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitInteger(IntegerPropertyDefinition pd, Integer v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a IP address. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The IP address property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitIPAddress(IPAddressPropertyDefinition d, InetAddress v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitIPAddress(IPAddressPropertyDefinition pd, InetAddress v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a IP address mask. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The IP address mask property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitIPAddressMask(IPAddressMaskPropertyDefinition d, AddressMask v, |
| | | public R visitIPAddressMask(IPAddressMaskPropertyDefinition pd, AddressMask v, |
| | | P p) { |
| | | return visitUnknown(d, v, p); |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Visit a dseecompat ACI. |
| | | * |
| | | * @param d |
| | | * The dseecompat ACI property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitACI(ACIPropertyDefinition d, Aci v, |
| | | P p) { |
| | | return visitUnknown(d, v, p); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Visit a size. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The size property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitSize(SizePropertyDefinition d, Long v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitSize(SizePropertyDefinition pd, Long v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | /** |
| | | * Visit a string. |
| | | * |
| | | * @param d |
| | | * @param pd |
| | | * The string property definition. |
| | | * @param v |
| | | * The property value to visit. |
| | |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | public R visitString(StringPropertyDefinition d, String v, P p) { |
| | | return visitUnknown(d, v, p); |
| | | public R visitString(StringPropertyDefinition pd, String v, P p) { |
| | | return visitUnknown(pd, v, p); |
| | | } |
| | | |
| | | |
| | |
| | | * |
| | | * @param <T> |
| | | * The type of property value to visit. |
| | | * @param d |
| | | * @param pd |
| | | * The property definition. |
| | | * @param v |
| | | * The property value. |
| | |
| | | * Visitor implementations may optionally throw this |
| | | * exception. |
| | | */ |
| | | public <T> R visitUnknown(PropertyDefinition<T> d, T v, P p) |
| | | public <T> R visitUnknown(PropertyDefinition<T> pd, T v, P p) |
| | | throws UnknownPropertyDefinitionException { |
| | | throw new UnknownPropertyDefinitionException(d, p); |
| | | throw new UnknownPropertyDefinitionException(pd, p); |
| | | } |
| | | |
| | | } |
| | |
| | | /** |
| | | * Visit an instantiable relation definition. |
| | | * |
| | | * @param d |
| | | * @param rd |
| | | * The instantiable relation definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | R visitInstantiable(InstantiableRelationDefinition<?, ?> d, P p); |
| | | R visitInstantiable(InstantiableRelationDefinition<?, ?> rd, P p); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Visit an optional relation definition. |
| | | * |
| | | * @param d |
| | | * @param rd |
| | | * The optional relation definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | R visitOptional(OptionalRelationDefinition<?, ?> d, P p); |
| | | R visitOptional(OptionalRelationDefinition<?, ?> rd, P p); |
| | | |
| | | |
| | | |
| | | /** |
| | | * Visit a singleton relation definition. |
| | | * |
| | | * @param d |
| | | * @param rd |
| | | * The singleton relation definition to visit. |
| | | * @param p |
| | | * A visitor specified parameter. |
| | | * @return Returns a visitor specified result. |
| | | */ |
| | | R visitSingleton(SingletonRelationDefinition<?, ?> d, P p); |
| | | R visitSingleton(SingletonRelationDefinition<?, ?> rd, P p); |
| | | |
| | | } |
| | |
| | | @Override |
| | | public <C extends ConfigurationClient, S extends Configuration> |
| | | Object visitAggregation( |
| | | AggregationPropertyDefinition<C, S> d, String v, Void p) { |
| | | AggregationPropertyDefinition<C, S> pd, String v, Void p) { |
| | | // Aggregations values are stored as full DNs in LDAP, but |
| | | // just their common name is exposed in the admin framework. |
| | | Reference<C, S> reference = Reference.parseName(d.getParentPath(), d |
| | | Reference<C, S> reference = Reference.parseName(pd.getParentPath(), pd |
| | | .getRelationDefinition(), v); |
| | | return reference.toDN().toString(); |
| | | } |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public <PD> Object visitUnknown(PropertyDefinition<PD> d, PD v, Void p) |
| | | public <PD> Object visitUnknown(PropertyDefinition<PD> pd, PD v, Void p) |
| | | throws UnknownPropertyDefinitionException { |
| | | return d.encodeValue(v); |
| | | return pd.encodeValue(v); |
| | | } |
| | | } |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message visitBoolean(BooleanPropertyDefinition d, Boolean v, |
| | | public Message visitBoolean(BooleanPropertyDefinition pd, Boolean v, |
| | | Void p) { |
| | | if (v == false) { |
| | | return INFO_VALUE_FALSE.get(); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message visitDuration(DurationPropertyDefinition d, Long v, Void p) { |
| | | if (d.getUpperLimit() == null && (v < 0 || v == Long.MAX_VALUE)) { |
| | | public Message visitDuration(DurationPropertyDefinition pd, Long v, |
| | | Void p) { |
| | | if (pd.getUpperLimit() == null && (v < 0 || v == Long.MAX_VALUE)) { |
| | | return INFO_VALUE_UNLIMITED.get(); |
| | | } |
| | | |
| | | MessageBuilder builder = new MessageBuilder(); |
| | | long ms = d.getBaseUnit().toMilliSeconds(v); |
| | | long ms = pd.getBaseUnit().toMilliSeconds(v); |
| | | |
| | | if (timeUnit == null && !isScriptFriendly && ms != 0) { |
| | | // Use human-readable string representation by default. |
| | |
| | | // base unit. |
| | | DurationUnit unit = timeUnit; |
| | | if (unit == null) { |
| | | unit = d.getBaseUnit(); |
| | | unit = pd.getBaseUnit(); |
| | | } |
| | | |
| | | builder.append(numberFormat.format(unit.fromMilliSeconds(ms))); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Message visitSize(SizePropertyDefinition d, Long v, Void p) { |
| | | if (d.isAllowUnlimited() && v < 0) { |
| | | public Message visitSize(SizePropertyDefinition pd, Long v, Void p) { |
| | | if (pd.isAllowUnlimited() && v < 0) { |
| | | return INFO_VALUE_UNLIMITED.get(); |
| | | } |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public <T> Message visitUnknown(PropertyDefinition<T> d, T v, Void p) { |
| | | public <T> Message visitUnknown(PropertyDefinition<T> pd, T v, Void p) { |
| | | // For all other property definition types the default encoding |
| | | // will do. |
| | | String s = d.encodeValue(v); |
| | | String s = pd.encodeValue(v); |
| | | if (isScriptFriendly) { |
| | | return Message.raw("%s", s); |
| | | } else if (s.trim().length() == 0 || s.contains(",")) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Void visitInstantiable(InstantiableRelationDefinition<?, ?> r, |
| | | public Void visitInstantiable(InstantiableRelationDefinition<?, ?> rd, |
| | | ManagedObjectPath<?, ?> p) { |
| | | try { |
| | | // Create the sub-commands. |
| | | createHandlers.add(CreateSubCommandHandler.create(parser, p, r)); |
| | | deleteHandlers.add(DeleteSubCommandHandler.create(parser, p, r)); |
| | | listHandlers.add(ListSubCommandHandler.create(parser, p, r)); |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, r)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, r)); |
| | | createHandlers.add(CreateSubCommandHandler.create(parser, p, rd)); |
| | | deleteHandlers.add(DeleteSubCommandHandler.create(parser, p, rd)); |
| | | listHandlers.add(ListSubCommandHandler.create(parser, p, rd)); |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, rd)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, rd)); |
| | | |
| | | // Process the referenced managed object definition and its |
| | | // sub-types. |
| | | processRelation(p, r); |
| | | processRelation(p, rd); |
| | | } catch (ArgumentException e) { |
| | | exception = e; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Void visitOptional(OptionalRelationDefinition<?, ?> r, |
| | | public Void visitOptional(OptionalRelationDefinition<?, ?> rd, |
| | | ManagedObjectPath<?, ?> p) { |
| | | try { |
| | | // Create the sub-commands. |
| | | createHandlers.add(CreateSubCommandHandler.create(parser, p, r)); |
| | | deleteHandlers.add(DeleteSubCommandHandler.create(parser, p, r)); |
| | | listHandlers.add(ListSubCommandHandler.create(parser, p, r)); |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, r)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, r)); |
| | | createHandlers.add(CreateSubCommandHandler.create(parser, p, rd)); |
| | | deleteHandlers.add(DeleteSubCommandHandler.create(parser, p, rd)); |
| | | listHandlers.add(ListSubCommandHandler.create(parser, p, rd)); |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, rd)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, rd)); |
| | | |
| | | // Process the referenced managed object definition and its |
| | | // sub-types. |
| | | processRelation(p, r); |
| | | processRelation(p, rd); |
| | | } catch (ArgumentException e) { |
| | | exception = e; |
| | | } |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Void visitSingleton(SingletonRelationDefinition<?, ?> r, |
| | | public Void visitSingleton(SingletonRelationDefinition<?, ?> rd, |
| | | ManagedObjectPath<?, ?> p) { |
| | | try { |
| | | // Create the sub-commands. |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, r)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, r)); |
| | | getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, rd)); |
| | | setPropHandlers.add(SetPropSubCommandHandler.create(parser, p, rd)); |
| | | |
| | | // Process the referenced managed object definition and its |
| | | // sub-types. |
| | | processRelation(p, r); |
| | | processRelation(p, rd); |
| | | } catch (ArgumentException e) { |
| | | exception = e; |
| | | } |