org.eclipse.wst.css.core_1.1.501.v201111292150

16:48:56.745 INFO  jd.cli.Main - Decompiling org.eclipse.wst.css.core_1.1.501.v201111292150.jar
package org.eclipse.wst.css.core.internal;

import org.eclipse.osgi.util.NLS;

public class CSSCoreMessages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.wst.css.core.internal.CSSCorePluginResources";
  public static String You_cannot_use_CSSStyleShe_UI_;
  public static String CSSContentPropertiesManager_Updating;
  public static String CSSContentPropertiesManager_Problems_Updating;
  
  static
  {
    NLS.initializeMessages("org.eclipse.wst.css.core.internal.CSSCorePluginResources", CSSCoreMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.CSSCoreMessages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal;

import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.Plugin;
import org.eclipse.wst.css.core.internal.contentproperties.CSSContentPropertiesManager;
import org.osgi.framework.BundleContext;

public class CSSCorePlugin
  extends Plugin
{
  private static CSSCorePlugin plugin;
  
  public CSSCorePlugin()
  {
    plugin = this;
  }
  
  public static CSSCorePlugin getDefault()
  {
    return plugin;
  }
  
  public static IWorkspace getWorkspace()
  {
    return ResourcesPlugin.getWorkspace();
  }
  
  public void start(BundleContext context)
    throws Exception
  {
    super.start(context);
    
    CSSContentPropertiesManager.startup();
  }
  
  public void stop(BundleContext context)
    throws Exception
  {
    CSSContentPropertiesManager.shutdown();
    
    super.stop(context);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.CSSCorePlugin
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal;

public abstract interface IProductConstants
{
  public static final String DEFAULT_PROFILE = "wst.css.default_profile";
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.IProductConstants
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal;

import com.ibm.icu.util.StringTokenizer;
import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.osgi.framework.Bundle;

public class Logger
{
  private static final String PLUGIN_ID = "org.eclipse.wst.css.core";
  private static final String TRACEFILTER_LOCATION = "/debug/tracefilter";
  public static final int OK = 0;
  public static final int INFO = 1;
  public static final int WARNING = 2;
  public static final int ERROR = 4;
  public static final int OK_DEBUG = 200;
  public static final int INFO_DEBUG = 201;
  public static final int WARNING_DEBUG = 202;
  public static final int ERROR_DEBUG = 204;
  
  protected static void _log(int level, String message, Throwable exception)
  {
    if (((level == 200) || (level == 201) || (level == 202) || (level == 204)) && 
      (!isDebugging())) {
      return;
    }
    int severity = 0;
    switch (level)
    {
    case 1: 
    case 201: 
      severity = 1;
      break;
    case 2: 
    case 202: 
      severity = 2;
      break;
    case 4: 
    case 204: 
      severity = 4;
    }
    message = message != null ? message : "null";
    Status statusObj = new Status(severity, "org.eclipse.wst.css.core", severity, message, exception);
    Bundle bundle = Platform.getBundle("org.eclipse.wst.css.core");
    if (bundle != null) {
      Platform.getLog(bundle).log(statusObj);
    }
  }
  
  protected static void _trace(String category, String message, Throwable exception)
  {
    if (isTracing(category))
    {
      message = message != null ? message : "null";
      Status statusObj = new Status(0, "org.eclipse.wst.css.core", 0, message, exception);
      Bundle bundle = Platform.getBundle("org.eclipse.wst.css.core");
      if (bundle != null) {
        Platform.getLog(bundle).log(statusObj);
      }
    }
  }
  
  public static boolean isDebugging()
  {
    return Platform.inDebugMode();
  }
  
  public static boolean isTracing(String category)
  {
    if (!isDebugging()) {
      return false;
    }
    String traceFilter = Platform.getDebugOption("org.eclipse.wst.css.core/debug/tracefilter");
    if (traceFilter != null)
    {
      StringTokenizer tokenizer = new StringTokenizer(traceFilter, ",");
      while (tokenizer.hasMoreTokens())
      {
        String cat = tokenizer.nextToken().trim();
        if (category.equals(cat)) {
          return true;
        }
      }
    }
    return false;
  }
  
  public static void log(int level, String message)
  {
    _log(level, message, null);
  }
  
  public static void log(int level, String message, Throwable exception)
  {
    _log(level, message, exception);
  }
  
  public static void logException(String message, Throwable exception)
  {
    _log(4, message, exception);
  }
  
  public static void logException(Throwable exception)
  {
    _log(4, exception.getMessage(), exception);
  }
  
  public static void traceException(String category, String message, Throwable exception)
  {
    _trace(category, message, exception);
  }
  
  public static void traceException(String category, Throwable exception)
  {
    _trace(category, exception.getMessage(), exception);
  }
  
  public static void trace(String category, String message)
  {
    _trace(category, message, null);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.Logger
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.cleanup;

public abstract interface CSSCleanupStrategy
{
  public static final short ASIS = 0;
  public static final short LOWER = 1;
  public static final short UPPER = 2;
  
  public abstract short getIdentCase();
  
  public abstract short getPropNameCase();
  
  public abstract short getPropValueCase();
  
  public abstract short getSelectorTagCase();
  
  public abstract short getClassSelectorCase();
  
  public abstract short getIdSelectorCase();
  
  public abstract boolean isFormatSource();
  
  public abstract boolean isQuoteValues();
  
  public abstract void setFormatSource(boolean paramBoolean);
  
  public abstract void setIdentCase(short paramShort);
  
  public abstract void setPropNameCase(short paramShort);
  
  public abstract void setPropValueCase(short paramShort);
  
  public abstract void setQuoteValues(boolean paramBoolean);
  
  public abstract void setSelectorTagCase(short paramShort);
  
  public abstract void setClassSelectorCase(short paramShort);
  
  public abstract void setIdSelectorCase(short paramShort);
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.cleanup.CSSCleanupStrategy
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.cleanup;

import org.eclipse.core.runtime.Preferences;
import org.eclipse.wst.css.core.internal.CSSCorePlugin;

public class CSSCleanupStrategyImpl
  implements CSSCleanupStrategy
{
  private static CSSCleanupStrategy instance = null;
  protected short fIdentCase = 0;
  protected short fPropNameCase = 0;
  protected short fPropValueCase = 0;
  protected short fSelectorTagCase = 2;
  protected boolean fQuoteValues = true;
  protected boolean fFormatSource = true;
  protected short fClassCase = 0;
  protected short fIdCase = 0;
  
  protected CSSCleanupStrategyImpl()
  {
    initialize();
  }
  
  public short getIdentCase()
  {
    return fIdentCase;
  }
  
  public static synchronized CSSCleanupStrategy getInstance()
  {
    if (instance == null) {
      instance = new CSSCleanupStrategyImpl();
    }
    return instance;
  }
  
  public short getPropNameCase()
  {
    return fPropNameCase;
  }
  
  public short getPropValueCase()
  {
    return fPropValueCase;
  }
  
  public short getSelectorTagCase()
  {
    return fSelectorTagCase;
  }
  
  private void initialize()
  {
    Preferences prefs = CSSCorePlugin.getDefault().getPluginPreferences();
    fIdentCase = getCleanupCaseValue(prefs.getInt("cleanupIdentifierCase"));
    fPropNameCase = getCleanupCaseValue(prefs.getInt("cleanupPropNameCase"));
    fPropValueCase = getCleanupCaseValue(prefs.getInt("cleanupPropValueCase"));
    fSelectorTagCase = getCleanupCaseValue(prefs.getInt("cleanupSelectorCase"));
    fIdCase = getCleanupCaseValue(prefs.getInt("cleanupIdSelectorCase"));
    fClassCase = getCleanupCaseValue(prefs.getInt("cleanupClassSelectorCase"));
    fQuoteValues = prefs.getBoolean("quoteAttrValues");
    fFormatSource = prefs.getBoolean("formatSource");
  }
  
  private short getCleanupCaseValue(int value)
  {
    switch (value)
    {
    case 1: 
      return 1;
    case 2: 
      return 2;
    }
    return 0;
  }
  
  public boolean isFormatSource()
  {
    return fFormatSource;
  }
  
  public boolean isQuoteValues()
  {
    return fQuoteValues;
  }
  
  public void setFormatSource(boolean formatSource)
  {
    fFormatSource = formatSource;
  }
  
  public void setIdentCase(short identCase)
  {
    fIdentCase = identCase;
  }
  
  public void setPropNameCase(short propNameCase)
  {
    fPropNameCase = propNameCase;
  }
  
  public void setPropValueCase(short propValueCase)
  {
    fPropValueCase = propValueCase;
  }
  
  public void setQuoteValues(boolean quoteValues)
  {
    fQuoteValues = quoteValues;
  }
  
  public void setSelectorTagCase(short selectorTagCase)
  {
    fSelectorTagCase = selectorTagCase;
  }
  
  public void saveOptions()
  {
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupIdentifierCase", fIdentCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupPropNameCase", fPropNameCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupPropValueCase", fPropValueCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupSelectorCase", fSelectorTagCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupIdSelectorCase", fIdCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("cleanupClassSelectorCase", fClassCase);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("quoteAttrValues", fQuoteValues);
    CSSCorePlugin.getDefault().getPluginPreferences().setValue("formatSource", fFormatSource);
    CSSCorePlugin.getDefault().savePluginPreferences();
  }
  
  public short getClassSelectorCase()
  {
    return fClassCase;
  }
  
  public short getIdSelectorCase()
  {
    return fIdCase;
  }
  
  public void setClassSelectorCase(short classSelectorCase)
  {
    fClassCase = classSelectorCase;
  }
  
  public void setIdSelectorCase(short idSelectorCase)
  {
    fIdCase = idSelectorCase;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.cleanup.CSSCleanupStrategyImpl
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.cleanup;

import java.io.IOException;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.wst.css.core.internal.formatter.CSSFormatUtil;
import org.eclipse.wst.css.core.internal.formatter.CSSSourceFormatter;
import org.eclipse.wst.css.core.internal.formatter.CSSSourceFormatterFactory;
import org.eclipse.wst.css.core.internal.provisional.contenttype.ContentTypeIdForCSS;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel;
import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode;
import org.eclipse.wst.sse.core.internal.cleanup.AbstractStructuredCleanupProcessor;
import org.eclipse.wst.sse.core.internal.cleanup.IStructuredCleanupHandler;
import org.eclipse.wst.sse.core.internal.format.IStructuredFormatProcessor;
import org.eclipse.wst.sse.core.internal.provisional.INodeNotifier;
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
import org.w3c.dom.Node;

public class CleanupProcessorCSS
  extends AbstractStructuredCleanupProcessor
{
  public void cleanupModel(IStructuredModel structuredModel, int start, int length)
  {
    CSSFormatUtil formatUtil = CSSFormatUtil.getInstance();
    if ((structuredModel instanceof ICSSModel))
    {
      ICSSDocument doc = ((ICSSModel)structuredModel).getDocument();
      CSSSourceFormatter formatter = CSSSourceFormatterFactory.getInstance().getSourceFormatter((INodeNotifier)doc);
      StringBuffer buf = formatter.cleanup(doc);
      if (buf != null)
      {
        int startOffset = ((IndexedRegion)doc).getStartOffset();
        int endOffset = ((IndexedRegion)doc).getEndOffset();
        formatUtil.replaceSource(doc.getModel(), startOffset, endOffset - startOffset, buf.toString());
      }
    }
    else if ((structuredModel instanceof IDOMModel))
    {
      List cssnodes = formatUtil.collectCSSNodes(structuredModel, start, length);
      if ((cssnodes != null) && (!cssnodes.isEmpty()))
      {
        ICSSModel model = null;
        for (int i = 0; i < cssnodes.size(); i++)
        {
          ICSSNode node = (ICSSNode)cssnodes.get(i);
          CSSSourceFormatter formatter = CSSSourceFormatterFactory.getInstance().getSourceFormatter((INodeNotifier)node);
          StringBuffer buf = formatter.cleanup(node);
          if (buf != null)
          {
            int startOffset = ((IndexedRegion)node).getStartOffset();
            int endOffset = ((IndexedRegion)node).getEndOffset();
            if (model == null) {
              model = node.getOwnerDocument().getModel();
            }
            formatUtil.replaceSource(model, startOffset, endOffset - startOffset, buf.toString());
          }
        }
      }
    }
  }
  
  protected String getContentType()
  {
    return ContentTypeIdForCSS.ContentTypeID_CSS;
  }
  
  public void cleanupModel(IStructuredModel structuredModel)
  {
    int start = 0;
    int length = structuredModel.getStructuredDocument().getLength();
    
    cleanupModel(structuredModel, start, length);
  }
  
  public void cleanupDocument(IDocument document)
    throws IOException, CoreException
  {}
  
  public void cleanupDocument(IDocument document, int start, int length)
    throws IOException, CoreException
  {}
  
  protected IStructuredCleanupHandler getCleanupHandler(Node node)
  {
    return null;
  }
  
  protected IStructuredFormatProcessor getFormatProcessor()
  {
    return null;
  }
  
  protected void refreshCleanupPreferences() {}
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.cleanup.CleanupProcessorCSS
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

public abstract interface IMediaGroupID
{
  public static final String M_CONTINUOUS = "continuous";
  public static final String M_PAGED = "paged";
  public static final String M_VISUAL = "visual";
  public static final String M_AURAL = "aural";
  public static final String M_TACTILE = "tactile";
  public static final String M_GRID = "grid";
  public static final String M_BITMAP = "bitmap";
  public static final String M_INTERACTIVE = "interactive";
  public static final String M_STATIC = "static";
  public static final String M_ALL = "all";
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.contentmodel.IMediaGroupID
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

public abstract interface IValID
{
  public static final String V_1 = "1";
  public static final String V_100 = "100";
  public static final String V_200 = "200";
  public static final String V_300 = "300";
  public static final String V_400 = "400";
  public static final String V_500 = "500";
  public static final String V_600 = "600";
  public static final String V_700 = "700";
  public static final String V_800 = "800";
  public static final String V_900 = "900";
  public static final String V_ABOVE = "above";
  public static final String V_ABSOLUTE = "absolute";
  public static final String V_ACTIVEBORDER = "ActiveBorder";
  public static final String V_ACTIVECAPTION = "ActiveCaption";
  public static final String V_ALL = "all";
  public static final String V_ALWAYS = "always";
  public static final String V_APPWORKSPACE = "AppWorkspace";
  public static final String V_AQUA = "aqua";
  public static final String V_ARMENIAN = "armenian";
  public static final String V_AUTO = "auto";
  public static final String V_AVOID = "avoid";
  public static final String V_BACKGROUND = "Background";
  public static final String V_BALANCE = "balance";
  public static final String V_BASELINE = "baseline";
  public static final String V_BEHIND = "behind";
  public static final String V_BELOW = "below";
  public static final String V_BIDI_OVERRIDE = "bidi-override";
  public static final String V_BLACK = "black";
  public static final String V_BLINK = "blink";
  public static final String V_BLOCK = "block";
  public static final String V_BLUE = "blue";
  public static final String V_BOLD = "bold";
  public static final String V_BOLDER = "bolder";
  public static final String V_BORDER_BOX = "border-box";
  public static final String V_BOTH = "both";
  public static final String V_BOTTOM = "bottom";
  public static final String V_BUTTONFACE = "ButtonFace";
  public static final String V_BUTTONHIGHLIGHT = "ButtonHighlight";
  public static final String V_BUTTONSHADOW = "ButtonShadow";
  public static final String V_BUTTONTEXT = "ButtonText";
  public static final String V_CAPITALIZE = "capitalize";
  public static final String V_CAPTION = "caption";
  public static final String V_CAPTIONTEXT = "CaptionText";
  public static final String V_CENTER = "center";
  public static final String V_CENTER_LEFT = "center-left";
  public static final String V_CENTER_RIGHT = "center-right";
  public static final String V_CHILD = "child";
  public static final String V_CIRCLE = "circle";
  public static final String V_CJK_IDEOGRAPHIC = "cjk-ideographic";
  public static final String V_CLIP = "clip";
  public static final String V_CLOSE_QUOTE = "close-quote";
  public static final String V_CODE = "code";
  public static final String V_CONDENSED = "condensed";
  public static final String V_COLLAPSE = "collapse";
  public static final String V_COMPACT = "compact";
  public static final String V_CONTAIN = "contain";
  public static final String V_CONTENT_BOX = "content-box";
  public static final String V_CONTINUOUS = "continuous";
  public static final String V_COVER = "cover";
  public static final String V_CROP = "crop";
  public static final String V_CROSS = "cross";
  public static final String V_CROSSHAIR = "crosshair";
  public static final String V_CURSIVE = "cursive";
  public static final String V_DASHED = "dashed";
  public static final String V_DECIMAL = "decimal";
  public static final String V_DECIMAL_LEADING_ZERO = "decimal-leading-zero";
  public static final String V_DEFAULT = "default";
  public static final String V_DIGITS = "digits";
  public static final String V_DISC = "disc";
  public static final String V_DOTTED = "dotted";
  public static final String V_DOUBLE = "double";
  public static final String V_E_RESIZE = "e-resize";
  public static final String V_ELLIPSIS = "ellipsis";
  public static final String V_EMBED = "embed";
  public static final String V_EXPANDED = "expanded";
  public static final String V_EXTRA_CONDENSED = "extra-condensed";
  public static final String V_EXTRA_EXPANDED = "extra-expanded";
  public static final String V_FANTASY = "fantasy";
  public static final String V_FAR_LEFT = "far-left";
  public static final String V_FAR_RIGHT = "far-right";
  public static final String V_FAST = "fast";
  public static final String V_FASTER = "faster";
  public static final String V_FEMALE = "female";
  public static final String V_FIXED = "fixed";
  public static final String V_FUCHSIA = "fuchsia";
  public static final String V_GEORGIAN = "georgian";
  public static final String V_GRAY = "gray";
  public static final String V_GRAYTEXT = "GrayText";
  public static final String V_GREEN = "green";
  public static final String V_GROOVE = "groove";
  public static final String V_HEBREW = "hebrew";
  public static final String V_HELP = "help";
  public static final String V_HIDDEN = "hidden";
  public static final String V_HIDE = "hide";
  public static final String V_HIGH = "high";
  public static final String V_HIGHLIGHT = "Highlight";
  public static final String V_HIGHLIGHTTEXT = "HighlightText";
  public static final String V_HIGHER = "higher";
  public static final String V_HIRAGANA = "hiragana";
  public static final String V_HIRAGANA_IROHA = "hiragana-iroha";
  public static final String V_HORIZONTAL = "horizontal";
  public static final String V_ICON = "icon";
  public static final String V_INACTIVEBORDER = "InactiveBorder";
  public static final String V_INACTIVECAPTION = "InactiveCaption";
  public static final String V_INACTIVECAPTIONTEXT = "InactiveCaptionText";
  public static final String V_INFOBACKGROUND = "InfoBackground";
  public static final String V_INFOTEXT = "InfoText";
  public static final String V_INLINE = "inline";
  public static final String V_INLINE_BLOCK = "inline-block";
  public static final String V_INLINE_TABLE = "inline-table";
  public static final String V_INSET = "inset";
  public static final String V_INSIDE = "inside";
  public static final String V_INVERT = "invert";
  public static final String V_ITALIC = "italic";
  public static final String V_JUSTIFY = "justify";
  public static final String V_KATAKANA = "katakana";
  public static final String V_KATAKANA_IROHA = "katakana-iroha";
  public static final String V_LANDSCAPE = "landscape";
  public static final String V_LARGE = "large";
  public static final String V_LARGER = "larger";
  public static final String V_LEFT = "left";
  public static final String V_LEFT_SIDE = "left-side";
  public static final String V_LEFTWARDS = "leftwards";
  public static final String V_LEVEL = "level";
  public static final String V_LIGHTER = "lighter";
  public static final String V_LIME = "lime";
  public static final String V_LINE_THROUGH = "line-through";
  public static final String V_LIST_ITEM = "list-item";
  public static final String V_LOCAL = "local";
  public static final String V_LOUD = "loud";
  public static final String V_LOW = "low";
  public static final String V_LOWER = "lower";
  public static final String V_LOWER_ALPHA = "lower-alpha";
  public static final String V_LOWER_GREEK = "lower-greek";
  public static final String V_LOWER_LATIN = "lower-latin";
  public static final String V_LOWER_ROMAN = "lower-roman";
  public static final String V_LOWERCASE = "lowercase";
  public static final String V_LTR = "ltr";
  public static final String V_MALE = "male";
  public static final String V_MARKER = "marker";
  public static final String V_MAROON = "maroon";
  public static final String V_MEDIUM = "medium";
  public static final String V_MENU = "menu";
  public static final String V_MENUTEXT = "MenuText";
  public static final String V_MESSAGE_BOX = "message-box";
  public static final String V_MIDDLE = "middle";
  public static final String V_MIX = "mix";
  public static final String V_MONOSPACE = "monospace";
  public static final String V_MOVE = "move";
  public static final String V_N_RESIZE = "n-resize";
  public static final String V_NARROWER = "narrower";
  public static final String V_NAVY = "navy";
  public static final String V_NE_RESIZE = "ne-resize";
  public static final String V_NO_CLOSE_QUOTE = "no-close-quote";
  public static final String V_NO_OPEN_QUOTE = "no-open-quote";
  public static final String V_NO_REPEAT = "no-repeat";
  public static final String V_NONE = "none";
  public static final String V_NORMAL = "normal";
  public static final String V_NOWRAP = "nowrap";
  public static final String V_NW_RESIZE = "nw-resize";
  public static final String V_OBLIQUE = "oblique";
  public static final String V_OLIVE = "olive";
  public static final String V_ONCE = "once";
  public static final String V_OPEN_QUOTE = "open-quote";
  public static final String V_ORANGE = "orange";
  public static final String V_OUTSET = "outset";
  public static final String V_OUTSIDE = "outside";
  public static final String V_OVERLINE = "overline";
  public static final String V_PADDING_BOX = "padding-box";
  public static final String V_POINTER = "pointer";
  public static final String V_PORTRAIT = "portrait";
  public static final String V_PRE = "pre";
  public static final String V_PRE_LINE = "pre-line";
  public static final String V_PRE_WRAP = "pre-wrap";
  public static final String V_PROGRESS = "progress";
  public static final String V_PURPLE = "purple";
  public static final String V_RED = "red";
  public static final String V_RELATIVE = "relative";
  public static final String V_REPEAT = "repeat";
  public static final String V_REPEAT_X = "repeat-x";
  public static final String V_REPEAT_Y = "repeat-y";
  public static final String V_RIDGE = "ridge";
  public static final String V_RIGHT = "right";
  public static final String V_RIGHT_SIDE = "right-side";
  public static final String V_RIGHTWARDS = "rightwards";
  public static final String V_ROUND = "round";
  public static final String V_RTL = "rtl";
  public static final String V_RUN_IN = "run-in";
  public static final String V_S_RESIZE = "s-resize";
  public static final String V_SANS_SERIF = "sans-serif";
  public static final String V_SCROLL = "scroll";
  public static final String V_SCROLLBAR = "Scrollbar";
  public static final String V_SE_RESIZE = "se-resize";
  public static final String V_SEMI_CONDENSED = "semi-condensed";
  public static final String V_SEMI_EXPANDED = "semi-expanded";
  public static final String V_SEPARATE = "separate";
  public static final String V_SERIF = "serif";
  public static final String V_SHOW = "show";
  public static final String V_SILENT = "silent";
  public static final String V_SILVER = "silver";
  public static final String V_SLOW = "slow";
  public static final String V_SLOWER = "slower";
  public static final String V_SMALL = "small";
  public static final String V_SMALL_CAPS = "small-caps";
  public static final String V_SMALL_CAPTION = "small-caption";
  public static final String V_SMALLER = "smaller";
  public static final String V_SOFT = "soft";
  public static final String V_SOLID = "solid";
  public static final String V_SPACE = "space";
  public static final String V_SPELL_OUT = "spell-out";
  public static final String V_SQUARE = "square";
  public static final String V_STATIC = "static";
  public static final String V_STATUS_BAR = "status-bar";
  public static final String V_SUB = "sub";
  public static final String V_SUPER = "super";
  public static final String V_SW_RESIZE = "sw-resize";
  public static final String V_TABLE = "table";
  public static final String V_TABLE_CAPTION = "table-caption";
  public static final String V_TABLE_CELL = "table-cell";
  public static final String V_TABLE_COLUMN = "table-column";
  public static final String V_TABLE_COLUMN_GROUP = "table-column-group";
  public static final String V_TABLE_FOOTER_GROUP = "table-footer-group";
  public static final String V_TABLE_HEADER_GROUP = "table-header-group";
  public static final String V_TABLE_ROW = "table-row";
  public static final String V_TABLE_ROW_GROUP = "table-row-group";
  public static final String V_TEAL = "teal";
  public static final String V_TEXT = "text";
  public static final String V_TEXT_TOP = "text-top";
  public static final String V_TEXT_BOTTOM = "text-bottom";
  public static final String V_THICK = "thick";
  public static final String V_THIN = "thin";
  public static final String V_THREEDDARKSHADOW = "ThreeDDarkShadow";
  public static final String V_THREEDFACE = "ThreeDFace";
  public static final String V_THREEDHIGHLIGHT = "ThreeDHighlight";
  public static final String V_THREEDLIGHTSHADOW = "ThreeDLightShadow";
  public static final String V_THREEDSHADOW = "ThreeDShadow";
  public static final String V_TOP = "top";
  public static final String V_TRANSPARENT = "transparent";
  public static final String V_ULTRA_CONDENSED = "ultra-condensed";
  public static final String V_ULTRA_EXPANDED = "ultra-expanded";
  public static final String V_UNDERLINE = "underline";
  public static final String V_UPPER_ALPHA = "upper-alpha";
  public static final String V_UPPER_LATIN = "upper-latin";
  public static final String V_UPPER_ROMAN = "upper-roman";
  public static final String V_UPPERCASE = "uppercase";
  public static final String V_VERTICAL = "vertical";
  public static final String V_VISIBLE = "visible";
  public static final String V_W_RESIZE = "w-resize";
  public static final String V_WAIT = "wait";
  public static final String V_WHITE = "white";
  public static final String V_WIDER = "wider";
  public static final String V_WINDOW = "Window";
  public static final String V_WINDOWFRAME = "WindowFrame";
  public static final String V_WINDOWTEXT = "WindowText";
  public static final String V_X_FAST = "x-fast";
  public static final String V_X_HIGH = "x-high";
  public static final String V_X_LARGE = "x-large";
  public static final String V_X_LOUD = "x-loud";
  public static final String V_X_LOW = "x-low";
  public static final String V_X_SLOW = "x-slow";
  public static final String V_X_SMALL = "x-small";
  public static final String V_X_SOFT = "x-soft";
  public static final String V_XX_SMALL = "xx-small";
  public static final String V_XX_LARGE = "xx-large";
  public static final String V_YELLOW = "yellow";
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.contentmodel.IValID
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

import java.util.Collection;
import java.util.Hashtable;
import java.util.Set;
import java.util.Vector;

public class PropCMContainer
  extends PropCMNode
{
  private Vector nodes = new Vector();
  private static Hashtable instances = null;
  public static final String VAL_ABSOLUTE_SIZE = "absolute-size";
  public static final String VAL_BORDER_STYLE = "border-style";
  public static final String VAL_BORDER_WIDTH = "border-width";
  public static final String VAL_COLOR = "color";
  public static final String VAL_SYSTEM_COLOR = "system-color";
  public static final String VAL_GENERIC_FAMILY = "generic-family";
  public static final String VAL_GENERIC_VOICE = "generic-voice";
  public static final String VAL_MARGIN_WIDTH = "margin-width";
  public static final String VAL_PADDING_WIDTH = "padding-width";
  public static final String VAL_RELATIVE_SIZE = "relative-size";
  
  protected PropCMContainer(String name)
  {
    super(name);
  }
  
  Object appendChild(Object node)
  {
    if (!nodes.contains(node)) {
      nodes.add(node);
    }
    return node;
  }
  
  public boolean canHave(String identifier)
  {
    int nChild = getNumChild();
    for (int i = 0; i < nChild; i++)
    {
      Object child = getChildAt(i);
      if (((child instanceof String)) && (identifier.equalsIgnoreCase((String)child))) {
        return true;
      }
      if (((child instanceof PropCMContainer)) && (((PropCMContainer)child).canHave(identifier))) {
        return true;
      }
    }
    return false;
  }
  
  public Object getChildAt(int index)
  {
    if ((nodes == null) || (index < 0) || (nodes.size() <= index)) {
      return null;
    }
    return nodes.elementAt(index);
  }
  
  static PropCMContainer getContInstanceOf(String name)
  {
    if (name == null) {
      return null;
    }
    if (instances == null) {
      instances = new Hashtable(20);
    }
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    Object node = instances.get(name);
    if (node != null) {
      return (PropCMContainer)node;
    }
    if (PropCMNode.isLoading())
    {
      node = new PropCMContainer(name);
      instances.put(name, node);
    }
    return (PropCMContainer)node;
  }
  
  void getIdentifiers(Set idents)
  {
    if (idents == null) {
      return;
    }
    int nChildren = nodes.size();
    for (int i = 0; i < nChildren; i++)
    {
      Object node = nodes.elementAt(i);
      if ((node instanceof PropCMNode)) {
        ((PropCMNode)node).getIdentifiers(idents);
      } else if ((node instanceof String)) {
        idents.add(node);
      }
    }
  }
  
  public int getNumChild()
  {
    if (nodes == null) {
      return 0;
    }
    return nodes.size();
  }
  
  public short getType()
  {
    return 5;
  }
  
  void getValues(Collection values)
  {
    if (values == null) {
      return;
    }
    int nChildren = nodes.size();
    for (int i = 0; i < nChildren; i++)
    {
      Object node = nodes.elementAt(i);
      if ((node instanceof PropCMNode)) {
        ((PropCMNode)node).getValues(values);
      } else if (((node instanceof String)) && 
        (!values.contains(node))) {
        values.add(node);
      }
    }
  }
  
  Object removeChild(Object node)
  {
    nodes.remove(node);
    return node;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.contentmodel.PropCMContainer
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

import java.util.Collection;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.Vector;

public class PropCMFontProperty
  extends PropCMProperty
{
  private static Hashtable instances = null;
  private static Hashtable cachedIdMap = null;
  public static final String PF_FONT_FAMILY = "font-family";
  public static final String PF_FONT_STYLE = "font-style";
  public static final String PF_FONT_VARIANT = "font-variant";
  public static final String PF_FONT_WEIGHT = "font-weight";
  public static final String PF_FONT_STRETCH = "font-stretch";
  public static final String PF_FONT_SIZE = "font-size";
  public static final String PF_UNICODE_RANGE = "unicode-range";
  public static final String PF_UNITS_PER_EM = "units-per-em";
  public static final String PF_SRC = "src";
  public static final String PF_PANOSE_1 = "panose-1";
  public static final String PF_STEMV = "stemv";
  public static final String PF_STEMH = "stemh";
  public static final String PF_SLOPE = "slope";
  public static final String PF_CAP_HEIGHT = "cap-height";
  public static final String PF_X_HEIGHT = "x-height";
  public static final String PF_ASCENT = "ascent";
  public static final String PF_DESCENT = "descent";
  public static final String PF_WIDTHS = "widths";
  public static final String PF_BBOX = "bbox";
  public static final String PF_DEFINITION_SRC = "definition-src";
  public static final String PF_BASELINE = "baseline";
  public static final String PF_CENTERLINE = "centerline";
  public static final String PF_MATHLINE = "mathline";
  public static final String PF_TOPLINE = "topline";
  
  protected PropCMFontProperty(String name)
  {
    super(name);
  }
  
  public static PropCMProperty getInstanceOf(String name)
  {
    if (instances == null) {
      instances = new Hashtable(10);
    }
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    Object node = instances.get(name);
    if (node != null) {
      return (PropCMProperty)node;
    }
    if (PropCMNode.isLoading())
    {
      node = new PropCMFontProperty(name);
      instances.put(name, node);
    }
    return (PropCMProperty)node;
  }
  
  public static Enumeration getNameEnum()
  {
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    return instances.keys();
  }
  
  public static Enumeration getPropertyEnum()
  {
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    return instances.elements();
  }
  
  public short getType()
  {
    return 7;
  }
  
  public static Vector names()
  {
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    return new Vector(instances.keySet());
  }
  
  public static List names(Object mediaGroup)
  {
    if (mediaGroup == null) {
      return names();
    }
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    Vector properties = new Vector();
    
    Iterator it = instances.values().iterator();
    while (it.hasNext())
    {
      PropCMProperty prop = (PropCMProperty)it.next();
      if (prop.getMediaGroups().contains(mediaGroup)) {
        properties.add(prop.getName());
      }
    }
    return properties;
  }
  
  public static Vector propertiesFor(String identifier, boolean shorthands)
  {
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    if (identifier == null) {
      return new Vector(instances.values());
    }
    if (cachedIdMap == null)
    {
      cachedIdMap = new Hashtable();
    }
    else
    {
      Object ret = cachedIdMap.get(identifier + String.valueOf(shorthands));
      if (ret != null) {
        return new Vector((Collection)ret);
      }
    }
    Enumeration properties = getPropertyEnum();
    HashSet set = new HashSet();
    while (properties.hasMoreElements())
    {
      PropCMProperty prop = (PropCMProperty)properties.nextElement();
      if ((shorthands) || (!prop.isShorthand())) {
        if (prop.canHave(identifier)) {
          set.add(prop);
        }
      }
    }
    cachedIdMap.put(identifier + String.valueOf(shorthands), set);
    
    return new Vector(set);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.contentmodel.PropCMFontProperty
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

import java.util.Collection;
import java.util.Hashtable;
import java.util.Set;

public class PropCMFunction
  extends PropCMNode
{
  private static Hashtable instances = null;
  public static final String VAL_ATTR = "attr";
  public static final String VAL_COUNTER = "counter";
  public static final String VAL_RGB = "rgb";
  public static final String VAL_SHAPE = "rect";
  public static final String VAL_URI = "url";
  public static final String VAL_FORMAT = "format";
  public static final String VAL_LOCAL = "local";
  
  protected PropCMFunction(String name)
  {
    super(name);
  }
  
  void getIdentifiers(Set indents) {}
  
  public static PropCMFunction getInstanceOf(String name)
  {
    if (name == null) {
      return null;
    }
    if (instances == null) {
      instances = new Hashtable(10);
    }
    if (isNeedInitialize()) {
      PropCMNode.initPropertyCM();
    }
    Object node = instances.get(name);
    if (node != null) {
      return (PropCMFunction)node;
    }
    if (PropCMNode.isLoading())
    {
      node = new PropCMFunction(name);
      instances.put(name, node);
    }
    return (PropCMFunction)node;
  }
  
  public short getType()
  {
    return 4;
  }
  
  void getValues(Collection values)
  {
    if ((values != null) && (!values.contains(this))) {
      values.add(this);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.wst.css.core.internal.contentmodel.PropCMFunction
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.wst.css.core.internal.contentmodel;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.Vector;

public abstract class PropCMNode
{
  public static final short VAL_IDENTIFIER = 0;
  public static final short VAL_PROPERTY = 1;
  public static final short VAL_NUMBER = 2;
  public static final sho
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd