Searched refs:propertyDef (Results 1 - 14 of 14) sorted by relevance

/forgerock/opendj-v3/opendj-config/src/test/java/org/forgerock/opendj/config/
H A DAttributeTypePropertyDefinitionTest.java41 AttributeTypePropertyDefinition propertyDef = createPropertyDefinition();
42 propertyDef.validateValue(Schema.getDefaultSchema().getAttributeType("cn"));
52 AttributeTypePropertyDefinition propertyDef = createPropertyDefinition();
54 assertEquals(propertyDef.decodeValue(value), expected);
59 AttributeTypePropertyDefinition propertyDef = createPropertyDefinition();
60 assertEquals(propertyDef.encodeValue(propertyDef.decodeValue(value)), value);
72 AttributeTypePropertyDefinition propertyDef = createPropertyDefinition();
73 propertyDef.decodeValue(value);
81 AttributeTypePropertyDefinition propertyDef
[all...]
H A DAggregationPropertyDefinitionTest.java53 AggregationPropertyDefinition<?, ?> propertyDef = definition.getAggregationPropertyPropertyDefinition();
54 String nvalue = propertyDef.normalizeValue(" LDAP connection handler ");
62 AggregationPropertyDefinition<?, ?> propertyDef = definition.getAggregationPropertyPropertyDefinition();
64 DN actual = propertyDef.getChildDN(" LDAP connection handler ");
71 AggregationPropertyDefinition<?, ?> propertyDef = definition.getAggregationPropertyPropertyDefinition();
72 ManagedObjectPath<?, ?> path = propertyDef.getChildPath("LDAP connection handler");
74 Assert.assertSame(path.getManagedObjectDefinition(), propertyDef.getRelationDefinition().getChildDefinition());
75 Assert.assertSame(path.getRelationDefinition(), propertyDef.getRelationDefinition());
H A DSizePropertyDefinitionTest.java48 SizePropertyDefinition propertyDef = buildTestDefinition(builder);
49 assert propertyDef.getLowerLimit() == 1;
73 SizePropertyDefinition propertyDef = buildTestDefinition(builder);
74 assert propertyDef.getLowerLimit() == expectedValue;
81 SizePropertyDefinition propertyDef = buildTestDefinition(builder);
82 assert propertyDef.getUpperLimit().equals(expectedValue);
101 SizePropertyDefinition propertyDef = buildTestDefinition(builder);
102 propertyDef.decodeValue("unlimited");
109 SizePropertyDefinition propertyDef = buildTestDefinition(builder);
110 propertyDef
[all...]
H A DDNPropertyDefinitionTest.java52 DNPropertyDefinition propertyDef = localBuilder.getInstance();
54 DN actual = propertyDef.getBaseDN();
96 DNPropertyDefinition propertyDef = localBuilder.getInstance();
97 propertyDef.validateValue(DN.valueOf(valueToValidate));
105 DNPropertyDefinition propertyDef = localBuilder.getInstance();
106 propertyDef.validateValue(DN.valueOf(valueToValidate));
114 DNPropertyDefinition propertyDef = localBuilder.getInstance();
115 propertyDef.decodeValue(valueToValidate);
123 DNPropertyDefinition propertyDef = localBuilder.getInstance();
124 propertyDef
[all...]
H A DIntegerPropertyDefinitionTest.java66 IntegerPropertyDefinition propertyDef = buildTestDefinition(builder);
67 assert propertyDef.getLowerLimit() == expectedValue;
74 IntegerPropertyDefinition propertyDef = buildTestDefinition(builder);
75 assert propertyDef.getUpperLimit().equals(expectedValue);
94 IntegerPropertyDefinition propertyDef = buildTestDefinition(builder);
95 propertyDef.decodeValue("unlimited");
102 IntegerPropertyDefinition propertyDef = buildTestDefinition(builder);
103 propertyDef.decodeValue("unlimited");
110 IntegerPropertyDefinition propertyDef = buildTestDefinition(builder);
111 propertyDef
[all...]
H A DClassPropertyDefinitionTest.java73 ClassPropertyDefinition propertyDef = localBuilder.getInstance();
74 List<String> instances = propertyDef.getInstanceOfInterface();
95 ClassPropertyDefinition propertyDef = localBuilder.getInstance();
96 List<String> instances = propertyDef.getInstanceOfInterface();
117 ClassPropertyDefinition propertyDef = localBuilder.getInstance();
118 Class<?> clazz = propertyDef.loadClass(loadClassName, instanceOfClass);
135 ClassPropertyDefinition propertyDef = localBuilder.getInstance();
136 Class<?> clazz = propertyDef.loadClass(loadClassName, instanceOfClass);
H A DTestCfg.java150 * @param propertyDef
155 public static void initializePropertyDefinition(PropertyDefinition<?> propertyDef) throws Exception { argument
156 propertyDef.initialize();
157 propertyDef.getDefaultBehaviorProvider().initialize();
H A DConfigurationMock.java189 private PropertyDefinition<T> propertyDef; field in class:ConfigurationMock.MockProviderVisitor
191 MockProviderVisitor(PropertyDefinition<T> propertyDef) { argument
192 this.propertyDef = propertyDef;
216 values.add(propertyDef.decodeValue(stringValue));
H A DAbstractManagedObjectDefinitionTest.java151 PropertyDefinition<?> propertyDef = def.getPropertyDefinition("mandatory-class-property");
152 DefaultBehaviorProvider<?> provider = propertyDef.getDefaultBehaviorProvider();
164 PropertyDefinition<?> propertyDef = def.getPropertyDefinition("mandatory-class-property");
165 DefaultBehaviorProvider<?> provider = propertyDef.getDefaultBehaviorProvider();
/forgerock/opendj-v3/opendj-config/src/main/java/org/forgerock/opendj/config/server/
H A DServerManagementContext.java172 private Collection<T> find(ManagedObjectPath<?, ?> path, PropertyDefinition<T> propertyDef) { argument
174 nextProperty = propertyDef;
182 if (values.size() > 1 && !propertyDef.hasOption(PropertyOption.MULTI_VALUED)) {
183 throw defaultBehaviorException(propertyDef, propertyIsSingleValuedException(propertyDef));
287 * @param propertyDef
296 public static <P> P decode(PropertyDefinition<P> propertyDef, String value) { argument
297 return propertyDef.castValue(propertyDef.accept(new ValueDecoder(), value));
440 * @param propertyDef
455 getPropertyValues( ManagedObjectPath<C, S> path, PropertyDefinition<P> propertyDef) argument
677 decodeProperty(ManagedObjectPath<?, ?> path, PropertyDefinition<T> propertyDef, List<String> attributeValues, Entry newConfigEntry) argument
[all...]
/forgerock/opendj-v3/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/
H A DLDAPDriver.java224 ManagedObjectPath<C, S> path, PropertyDefinition<P> propertyDef) throws DefinitionDecodingException,
229 PropertyDefinition<?> tmp = d.getPropertyDefinition(propertyDef.getName());
230 if (tmp != propertyDef) {
231 throw new IllegalArgumentException("The property " + propertyDef.getName() + " is not associated with a "
247 propertyDef = (PropertyDefinition<P>) objectDef.getPropertyDefinition(propertyDef.getName());
249 String attrID = profile.getAttributeName(objectDef, propertyDef);
254 SortedSet<P> values = new TreeSet<>(propertyDef);
257 P value = ValueDecoder.decode(propertyDef, byteValue);
263 if (values.size() > 1 && !propertyDef
223 getPropertyValues( ManagedObjectPath<C, S> path, PropertyDefinition<P> propertyDef) argument
457 decodeProperty(PropertySet newProperties, ManagedObjectPath<?, ?> path, PropertyDefinition<P> propertyDef, Attribute attribute) argument
[all...]
H A DLDAPManagedObject.java98 public <P> Object visitUnknown(PropertyDefinition<P> propertyDef, P value, Void p) { argument
99 return propertyDef.encodeValue(value);
204 for (PropertyDefinition<?> propertyDef : definition.getAllPropertyDefinitions()) {
205 String attrID = driver.getLDAPProfile().getAttributeName(definition, propertyDef);
207 encodeProperty(attribute, propertyDef);
287 private <P> void encodeProperty(Attribute attribute, PropertyDefinition<P> propertyDef) { argument
289 Property<P> property = getProperty(propertyDef);
290 if (propertyDef.hasOption(PropertyOption.MANDATORY)) {
295 attribute.add(propertyDef.accept(visitor, value, null));
299 attribute.add(propertyDef
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/test/java/org/opends/server/
H A DConfigurationMock.java327 private PropertyDefinition<T> propertyDef; field in class:ConfigurationMock.MockProviderVisitor
329 MockProviderVisitor(PropertyDefinition<T> propertyDef) { argument
330 this.propertyDef = propertyDef;
354 values.add(propertyDef.decodeValue(stringValue));
378 private org.opends.server.admin.PropertyDefinition<T> propertyDef; field in class:ConfigurationMock.LegacyMockProviderVisitor
380 LegacyMockProviderVisitor(org.opends.server.admin.PropertyDefinition<T> propertyDef) { argument
381 this.propertyDef = propertyDef;
405 values.add(propertyDef
[all...]
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/core/
H A DSchemaHandler.java159 final ClassPropertyDefinition propertyDef = SchemaProviderCfgDefn.getInstance().getJavaClassPropertyDefinition();
160 final Class<? extends SchemaProvider> providerClass = propertyDef.loadClass(className, SchemaProvider.class);

Completed in 41 milliseconds