Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
openldap
JLDAP
Commits
785ad020
Commit
785ad020
authored
Nov 23, 2005
by
Jon Roberts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IETF library use of Java 1.5 enum keyword (ITS
#4163
)
parent
01da83f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
org/ietf/ldap/LDAPSchema.java
org/ietf/ldap/LDAPSchema.java
+40
-40
No files found.
org/ietf/ldap/LDAPSchema.java
View file @
785ad020
...
...
@@ -201,20 +201,20 @@ public class LDAPSchema extends LDAPEntry
{
class
AttrEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
AttrEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
AttrEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPAttributeSchema
(
(
com
.
novell
.
ldap
.
LDAPAttributeSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPAttributeSchema
)
enum
er
.
nextElement
());
}
}
return
new
AttrEnumWrapper
(
schema
.
getAttributeSchemas
());
...
...
@@ -230,20 +230,20 @@ public class LDAPSchema extends LDAPEntry
{
class
ObjEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
ObjEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
ObjEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPObjectClassSchema
(
(
com
.
novell
.
ldap
.
LDAPObjectClassSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPObjectClassSchema
)
enum
er
.
nextElement
());
}
}
return
new
ObjEnumWrapper
(
schema
.
getObjectClassSchemas
());
...
...
@@ -259,20 +259,20 @@ public class LDAPSchema extends LDAPEntry
{
class
MatchEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
MatchEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
MatchEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPMatchingRuleSchema
(
(
com
.
novell
.
ldap
.
LDAPMatchingRuleSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPMatchingRuleSchema
)
enum
er
.
nextElement
());
}
}
return
new
MatchEnumWrapper
(
schema
.
getMatchingRuleSchemas
());
...
...
@@ -288,20 +288,20 @@ public class LDAPSchema extends LDAPEntry
{
class
UseEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
UseEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
UseEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPMatchingRuleUseSchema
(
(
com
.
novell
.
ldap
.
LDAPMatchingRuleUseSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPMatchingRuleUseSchema
)
enum
er
.
nextElement
());
}
}
return
new
UseEnumWrapper
(
schema
.
getMatchingRuleUseSchemas
());
...
...
@@ -317,20 +317,20 @@ public class LDAPSchema extends LDAPEntry
{
class
StructEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
StructEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
StructEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPDITStructureRuleSchema
(
(
com
.
novell
.
ldap
.
LDAPDITStructureRuleSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPDITStructureRuleSchema
)
enum
er
.
nextElement
());
}
}
return
new
StructEnumWrapper
(
schema
.
getDITStructureRuleSchemas
());
...
...
@@ -346,20 +346,20 @@ public class LDAPSchema extends LDAPEntry
{
class
ContentEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
ContentEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
ContentEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPDITContentRuleSchema
(
(
com
.
novell
.
ldap
.
LDAPDITContentRuleSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPDITContentRuleSchema
)
enum
er
.
nextElement
());
}
}
return
new
ContentEnumWrapper
(
schema
.
getDITContentRuleSchemas
());
...
...
@@ -375,20 +375,20 @@ public class LDAPSchema extends LDAPEntry
{
class
NameEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
NameEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
NameEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPNameFormSchema
(
(
com
.
novell
.
ldap
.
LDAPNameFormSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPNameFormSchema
)
enum
er
.
nextElement
());
}
}
return
new
NameEnumWrapper
(
schema
.
getNameFormSchemas
());
...
...
@@ -404,20 +404,20 @@ public class LDAPSchema extends LDAPEntry
{
class
SyntaxEnumWrapper
implements
Enumeration
{
private
Enumeration
enum
;
SyntaxEnumWrapper
(
Enumeration
enum
)
private
Enumeration
enum
er
;
SyntaxEnumWrapper
(
Enumeration
enum
er
)
{
this
.
enum
=
enum
;
this
.
enum
er
=
enum
er
;
return
;
}
public
boolean
hasMoreElements
()
{
return
enum
.
hasMoreElements
();
return
enum
er
.
hasMoreElements
();
}
public
Object
nextElement
()
throws
NoSuchElementException
{
return
new
LDAPSyntaxSchema
(
(
com
.
novell
.
ldap
.
LDAPSyntaxSchema
)
enum
.
nextElement
());
(
com
.
novell
.
ldap
.
LDAPSyntaxSchema
)
enum
er
.
nextElement
());
}
}
return
new
SyntaxEnumWrapper
(
schema
.
getSyntaxSchemas
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment