📄 htmlcontentstype.java
字号:
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
* Schema.
* $Id$
*/
package com.queplix.core.modules.config.jxb;
//---------------------------------/
//- Imported classes and packages -/
//---------------------------------/
import java.io.IOException;
import java.io.Reader;
import java.io.Serializable;
import java.io.Writer;
import java.util.ArrayList;
import java.util.Enumeration;
import org.exolab.castor.xml.MarshalException;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.ValidationException;
import org.xml.sax.ContentHandler;
/**
* The sequence of html content elements
*
* @version $Revision$ $Date$
*/
public class HtmlContentsType extends com.queplix.core.modules.config.jxb.LocalizedObjectsId
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field _htmlcontentList
*/
private java.util.ArrayList _htmlcontentList;
//----------------/
//- Constructors -/
//----------------/
public HtmlContentsType()
{
super();
_htmlcontentList = new ArrayList();
} //-- com.queplix.core.modules.config.jxb.HtmlContentsType()
//-----------/
//- Methods -/
//-----------/
/**
* Method addHtmlcontent
*
*
*
* @param vHtmlcontent
*/
public void addHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent vHtmlcontent)
throws java.lang.IndexOutOfBoundsException
{
_htmlcontentList.add(vHtmlcontent);
} //-- void addHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent)
/**
* Method addHtmlcontent
*
*
*
* @param index
* @param vHtmlcontent
*/
public void addHtmlcontent(int index, com.queplix.core.modules.config.jxb.Htmlcontent vHtmlcontent)
throws java.lang.IndexOutOfBoundsException
{
_htmlcontentList.add(index, vHtmlcontent);
} //-- void addHtmlcontent(int, com.queplix.core.modules.config.jxb.Htmlcontent)
/**
* Method clearHtmlcontent
*
*/
public void clearHtmlcontent()
{
_htmlcontentList.clear();
} //-- void clearHtmlcontent()
/**
* Method enumerateHtmlcontent
*
*
*
* @return Enumeration
*/
public java.util.Enumeration enumerateHtmlcontent()
{
return new org.exolab.castor.util.IteratorEnumeration(_htmlcontentList.iterator());
} //-- java.util.Enumeration enumerateHtmlcontent()
/**
* Method getHtmlcontent
*
*
*
* @param index
* @return Htmlcontent
*/
public com.queplix.core.modules.config.jxb.Htmlcontent getHtmlcontent(int index)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _htmlcontentList.size())) {
throw new IndexOutOfBoundsException();
}
return (com.queplix.core.modules.config.jxb.Htmlcontent) _htmlcontentList.get(index);
} //-- com.queplix.core.modules.config.jxb.Htmlcontent getHtmlcontent(int)
/**
* Method getHtmlcontent
*
*
*
* @return Htmlcontent
*/
public com.queplix.core.modules.config.jxb.Htmlcontent[] getHtmlcontent()
{
int size = _htmlcontentList.size();
com.queplix.core.modules.config.jxb.Htmlcontent[] mArray = new com.queplix.core.modules.config.jxb.Htmlcontent[size];
for (int index = 0; index < size; index++) {
mArray[index] = (com.queplix.core.modules.config.jxb.Htmlcontent) _htmlcontentList.get(index);
}
return mArray;
} //-- com.queplix.core.modules.config.jxb.Htmlcontent[] getHtmlcontent()
/**
* Method getHtmlcontentCount
*
*
*
* @return int
*/
public int getHtmlcontentCount()
{
return _htmlcontentList.size();
} //-- int getHtmlcontentCount()
/**
* Method isValid
*
*
*
* @return boolean
*/
public boolean isValid()
{
try {
validate();
}
catch (org.exolab.castor.xml.ValidationException vex) {
return false;
}
return true;
} //-- boolean isValid()
/**
* Method marshal
*
*
*
* @param out
*/
public void marshal(java.io.Writer out)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
Marshaller.marshal(this, out);
} //-- void marshal(java.io.Writer)
/**
* Method marshal
*
*
*
* @param handler
*/
public void marshal(org.xml.sax.ContentHandler handler)
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
Marshaller.marshal(this, handler);
} //-- void marshal(org.xml.sax.ContentHandler)
/**
* Method removeHtmlcontent
*
*
*
* @param vHtmlcontent
* @return boolean
*/
public boolean removeHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent vHtmlcontent)
{
boolean removed = _htmlcontentList.remove(vHtmlcontent);
return removed;
} //-- boolean removeHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent)
/**
* Method setHtmlcontent
*
*
*
* @param index
* @param vHtmlcontent
*/
public void setHtmlcontent(int index, com.queplix.core.modules.config.jxb.Htmlcontent vHtmlcontent)
throws java.lang.IndexOutOfBoundsException
{
//-- check bounds for index
if ((index < 0) || (index > _htmlcontentList.size())) {
throw new IndexOutOfBoundsException();
}
_htmlcontentList.set(index, vHtmlcontent);
} //-- void setHtmlcontent(int, com.queplix.core.modules.config.jxb.Htmlcontent)
/**
* Method setHtmlcontent
*
*
*
* @param htmlcontentArray
*/
public void setHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent[] htmlcontentArray)
{
//-- copy array
_htmlcontentList.clear();
for (int i = 0; i < htmlcontentArray.length; i++) {
_htmlcontentList.add(htmlcontentArray[i]);
}
} //-- void setHtmlcontent(com.queplix.core.modules.config.jxb.Htmlcontent)
/**
* Method unmarshal
*
*
*
* @param reader
* @return Object
*/
public static java.lang.Object unmarshal(java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
{
return (com.queplix.core.modules.config.jxb.HtmlContentsType) Unmarshaller.unmarshal(com.queplix.core.modules.config.jxb.HtmlContentsType.class, reader);
} //-- java.lang.Object unmarshal(java.io.Reader)
/**
* Method validate
*
*/
public void validate()
throws org.exolab.castor.xml.ValidationException
{
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
validator.validate(this);
} //-- void validate()
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -