/**
* Retrieves the next element in the enumeration.
*/
+ @Override
public E next()
throws NamingException {
return nextElement();
/**
* Determines whether there are any more elements in the enumeration.
*/
+ @Override
public boolean hasMore()
throws NamingException {
return enumeration.hasMoreElements();
/**
* Closes this enumeration.
*/
- public void close()
- throws NamingException {
+ @Override
+ public void close() throws NamingException {
+ // NO-OP
}
+ @Override
public boolean hasMoreElements() {
return enumeration.hasMoreElements();
}
+ @Override
public E nextElement() {
return enumeration.nextElement();
}
// -------------------------------------------------------------- Constants
+ private static final long serialVersionUID = 1L;
// Default attribute names
* Default constructor.
*/
public ResourceAttributes() {
+ // NO-OP
}
/**
* Get attribute.
*/
+ @Override
public Attribute get(String attrID) {
if (attributes == null) {
if (attrID.equals(CREATION_DATE)) {
/**
* Put attribute.
*/
+ @Override
public Attribute put(Attribute attribute) {
if (attributes == null) {
try {
/**
* Put attribute.
*/
+ @Override
public Attribute put(String attrID, Object val) {
if (attributes == null) {
return null; // No reason to implement this
/**
* Remove attribute.
*/
+ @Override
public Attribute remove(String attrID) {
if (attributes == null) {
return null; // No reason to implement this
/**
* Get all attributes.
*/
+ @Override
public NamingEnumeration<? extends Attribute> getAll() {
if (attributes == null) {
Vector<BasicAttribute> attributes = new Vector<BasicAttribute>();
/**
* Get all attribute IDs.
*/
+ @Override
public NamingEnumeration<String> getIDs() {
if (attributes == null) {
Vector<String> attributeIDs = new Vector<String>();
/**
* Retrieves the number of attributes in the attribute set.
*/
+ @Override
public int size() {
if (attributes == null) {
int size = 0;
/**
* Case sensitivity.
*/
+ @Override
public boolean isCaseIgnored() {
return false;
}