com.espertech.esper.event.xml.SchemaItemAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esper Show documentation
Show all versions of esper Show documentation
Complex event processing and event series analysis component
/*
***************************************************************************************
* Copyright (C) 2006 EsperTech, Inc. All rights reserved. *
* http://www.espertech.com/esper *
* http://www.espertech.com *
* ---------------------------------------------------------------------------------- *
* The software in this package is published under the terms of the GPL license *
* a copy of which has been included with this distribution in the license.txt file. *
***************************************************************************************
*/
package com.espertech.esper.event.xml;
import java.io.Serializable;
/**
* Represents an attribute in a schema.
*/
public class SchemaItemAttribute implements SchemaItem, Serializable {
private static final long serialVersionUID = 127082800205223116L;
private final String namespace;
private final String name;
private final short xsSimpleType; // Types from XSSimpleType
private final String typeName;
/**
* Ctor.
*
* @param namespace namespace
* @param name name
* @param type attribute type
* @param typeName attribute type name
*/
public SchemaItemAttribute(String namespace, String name, short type, String typeName) {
this.name = name;
this.namespace = namespace;
this.xsSimpleType = type;
this.typeName = typeName;
}
/**
* Returns the namespace.
*
* @return namespace
*/
public String getNamespace() {
return namespace;
}
/**
* Returns the name.
*
* @return name
*/
public String getName() {
return name;
}
/**
* Returns the type.
*
* @return type
*/
public short getXsSimpleType() {
return xsSimpleType;
}
/**
* Returns the type name.
*
* @return type name
*/
public String getTypeName() {
return typeName;
}
public String toString() {
return "Attribute " + namespace + " " + name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy