org.apache.maven.usability.plugin.ExpressionDocumentation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-compat Show documentation
Show all versions of maven-compat Show documentation
Maven2 classes maintained as compatibility layer.
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 2.4.0,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.usability.plugin;
/**
* The root of a parameter plugin expression document.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class ExpressionDocumentation
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field expressions.
*/
private java.util.List expressions;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Method addExpression.
*
* @param expression a expression object.
*/
public void addExpression( Expression expression )
{
getExpressions().add( expression );
} //-- void addExpression( Expression )
/**
* Method getExpressions.
*
* @return List
*/
public java.util.List getExpressions()
{
if ( this.expressions == null )
{
this.expressions = new java.util.ArrayList();
}
return this.expressions;
} //-- java.util.List getExpressions()
/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding()
{
return this.modelEncoding;
} //-- String getModelEncoding()
/**
* Method removeExpression.
*
* @param expression a expression object.
*/
public void removeExpression( Expression expression )
{
getExpressions().remove( expression );
} //-- void removeExpression( Expression )
/**
* Set the list of plugin parameter expressions described by
* this
* document.
*
* @param expressions a expressions object.
*/
public void setExpressions( java.util.List expressions )
{
this.expressions = expressions;
} //-- void setExpressions( java.util.List )
/**
* Set the modelEncoding field.
*
* @param modelEncoding a modelEncoding object.
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
private java.util.Map expressionsBySyntax;
public java.util.Map getExpressionsBySyntax()
{
if ( expressionsBySyntax == null )
{
expressionsBySyntax = new java.util.HashMap();
java.util.List expressions = getExpressions();
if ( expressions != null && !expressions.isEmpty() )
{
for ( java.util.Iterator it = expressions.iterator(); it.hasNext(); )
{
Expression expr = (Expression) it.next();
expressionsBySyntax.put( expr.getSyntax(), expr );
}
}
}
return expressionsBySyntax;
}
public void flushExpressionsBySyntax()
{
expressionsBySyntax = null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy