com.sun.xml.wss.impl.c14n.Attribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webservices-rt Show documentation
Show all versions of webservices-rt Show documentation
This module contains the Metro runtime code.
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* Attribute.java
*
* Created on August 21, 2005, 4:49 PM
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package com.sun.xml.wss.impl.c14n;
import org.xml.sax.Attributes;
/**
*
* @author [email protected]
*/
public class Attribute {
int position = 0;
Attributes attributes = null;
/** Creates a new instance of Attribute */
public Attribute () {
}
public void setPosition (int pos){
this.position = pos;
}
public void setAttributes (Attributes attrs){
this.attributes = attrs;
}
public String getLocalName (){
return attributes.getLocalName (position);
}
public String getNamespaceURI(){
return attributes.getURI (position);
}
public String getValue (){
return attributes.getValue (position);
}
public int getPosition(){
return position;
}
}